fix for crash for functions with > 127 local vars#124
fix for crash for functions with > 127 local vars#124virt00l wants to merge 1 commit intoalbertodemichelis:masterfrom
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