Attackathon _ Fuel Network 33191 - [Smart Contract - Insight] Sway Formatting Behaves Differently Ba
Description
fn calculate_offset(base: usize, offset: i64) -> usize {
offset
.checked_add(base as i64)
.unwrap_or(base as i64)
.try_into()//@audit-issue conversion discrepancies on 32/64 bit machine
.unwrap_or(base)
}Impact
Recommendation
References
Proof of concept
Proof Of Concept
PreviousAttackathon _ Fuel Network 33186 - [Smart Contract - Medium] _compute_bytecode_root goes to an infinNextAttackathon _ Fuel Network 33193 - [Blockchain_DLT - Medium] Fuel SDKs ABI Decoder Behaves Different
Last updated
Was this helpful?