Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cryo crashes on BSC: Integer overflow when casting to u32 #173

Open
shouc opened this issue Jan 13, 2024 · 0 comments
Open

Cryo crashes on BSC: Integer overflow when casting to u32 #173

shouc opened this issue Jan 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@shouc
Copy link

shouc commented Jan 13, 2024

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.
photo_2024-01-12_19-05-34

I tried this code:

cryo traces

I expected to see this happen: Not crash

Instead, this happened: Crash

Screenshot 2024-01-12 at 6 52 59 PM
@shouc shouc added the bug Something isn't working label Jan 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant