-
Notifications
You must be signed in to change notification settings - Fork 156
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
fix for crash for functions with > 127 local vars #124
base: master
Are you sure you want to change the base?
Conversation
Actual crash happened due to _OP_CALL target argument is overflowed signed char (7 bit). Treat argument as as unsigned (with exception of value -1/255 which is special) in order to fix it
Could you provide a code sample showing the crash ? Maybe what you want to say is "fix for crash for functions with > 127 parameters".
|
I don't have time right now to triangulate this issue further.
or
Something along this lines. |
Thank you so much !
Gives an error and after applying your patch it works. |
@albertodemichelis can you review this PR please? |
I think we should simply add a check in the compiler that throws an error if the stack frame is larger than 127. It would be possible to increase the max stack frame to 254 in the future as suggested by this commit, but I have to verify that there aren't other implications. |
Actual crash happened due to _OP_CALL target argument is overflowed
signed char (7 bit). Treat argument as as unsigned (with exception of
value -1/255 which is special) in order to fix it