You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
A compiled cairo program that uses default_dict_new can be altered to trigger a panic in the VM: thread 'main' panicked at 'capacity overflow', library/alloc/src/raw_vec.rs:525:5
To reproduce, first compile this cairo program:
Then modify the json, specifically the -7 (in felt format, it'll be the largest hex string) to any big positive number (again, felt notation), an easy option is to delete everything after the 1. After that run the program and this will make the VM panic
An alternative is to delete all the data and call the instruction:
Describe the bug
VM panic
To Reproduce
A compiled cairo program that uses default_dict_new can be altered to trigger a panic in the VM:
thread 'main' panicked at 'capacity overflow', library/alloc/src/raw_vec.rs:525:5
To reproduce, first compile this cairo program:
Then modify the json, specifically the -7 (in felt format, it'll be the largest hex string) to any big positive number (again, felt notation), an easy option is to delete everything after the 1. After that run the program and this will make the VM panic
An alternative is to delete all the data and call the instruction:
and making sure the data has at least 5 entries :
Expected behavior
An error should be raised
What version/commit are you on?
For example: v0.7.0
The text was updated successfully, but these errors were encountered: