cryo
cryo copied to clipboard
Cryo crashes on BSC: Integer overflow when casting to u32
Version cryo 0.3.1-10-g5a1a3bf
Platform Linux dev1 5.10.75-051075-generic #202110201038 SMP Wed Oct 20 11:20:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Description
When collecting call traces on BSC, error integer overflow happens when casting to u32
is thrown by cryo. We believe it is because the gas field (u32) has overflowed.
For following transaction, https://bscscan.com/tx/0x33bd1edf49838cf61c88305b470f63a72f4559b0eefbdb8f9321db0bf07920a6, the gas limit is larger than u32 max.
I tried this code:
cryo traces
I expected to see this happen: Not crash
Instead, this happened: Crash