Attackathon _ Fuel Network 33203 - [Smart Contract - Insight] function inlining doesnt consider asm
Description
Brief/Intro
Vulnerability Details
// If the function is called only once then definitely inline it.
if call_counts.get(func).copied().unwrap_or(0) == 1 {
return true;
}
// If the function is (still) small then also inline it.
const MAX_INLINE_INSTRS_COUNT: usize = 4;
if func.num_instructions(ctx) <= MAX_INLINE_INSTRS_COUNT {
return true;
}Impact Details
References
Proof of concept
Proof of Concept
PreviousAttackathon _ Fuel Network 33195 - [Smart Contract - High] Incorrect Calculations in Subtraction FunNextAttackathon _ Fuel Network 33207 - [Smart Contract - Insight] users created message when withdrawing
Last updated
Was this helpful?