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
Descrption
Giving the VM a compiled program with a big hint PC location results in two kinds of panics: attempt to add with overflow if the number is usize::MAX and capacity overflow if the number is big enough.
To Reproduce
Create a program that has something similar to this in the hints section:
Talking with @Juan-M-V, this "bug" cannot be caused by a user, as the Program struct cannot be built directly. With the checks added in #1340, neither can this be built from a parsed program.
Descrption
Giving the VM a compiled program with a big hint PC location results in two kinds of panics:
attempt to add with overflow
if the number isusize::MAX
andcapacity overflow
if the number is big enough.To Reproduce
Create a program that has something similar to this in the hints section:
Expected behavior
The VM should throw an Error instead of panicing
Used version
v0.8.2
Additional context
This bug was found when trying to execute a
Program
created by manually initializing the fields, without the use of the parserThe text was updated successfully, but these errors were encountered: