mirror of
https://github.com/fluencelabs/wasm-utils
synced 2025-03-15 11:10:49 +00:00
Account start function in gas func patching.
This commit is contained in:
parent
3db0d60e70
commit
471a9b3fcc
@ -251,6 +251,9 @@ pub fn inject_gas_counter(module: elements::Module, rules: &rules::Set)
|
||||
}
|
||||
}
|
||||
},
|
||||
&mut elements::Section::Start(ref mut start_idx) => {
|
||||
if *start_idx >= gas_func { *start_idx += 1}
|
||||
},
|
||||
_ => { }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user