Attackathon _ Fuel Network 33193 - [Blockchain_DLT - Medium] Fuel SDKs ABI Decoder Behaves Different
Description
Bug Description
fn peek_length(bytes: &[u8]) -> Result<usize> {
let slice = peek_fixed::<LENGTH_BYTES_SIZE>(bytes)?;
u64::from_be_bytes(*slice)
.try_into()//@audit-issue
.map_err(|_| error!(Other, "could not convert `u64` to `usize`"))
}Impact
Recommendation
References
Proof of concept
Proof Of Concept
PreviousAttackathon _ Fuel Network 33191 - [Smart Contract - Insight] Sway Formatting Behaves Differently BaNextAttackathon _ Fuel Network 33195 - [Smart Contract - High] Incorrect Calculations in Subtraction Fun
Last updated
Was this helpful?