espruino / Espruino

The Espruino JavaScript interpreter - Official Repo
http://www.espruino.com/
Other
2.76k stars 741 forks source link

Segmentation faults and floating point exception #1983

Closed docfate111 closed 3 years ago

docfate111 commented 3 years ago

On Ubuntu 20:04 running the espruino binary on the files in the zip cause crashes. Mainly null pointer derefence/deferencing overwritten addresses and processing floating point numbers.

gfwilliams commented 3 years ago

There doesn't appear to be anything in that zip file?

docfate111 commented 3 years ago

crashes.zip Sorry I attached the wrong file, here is the correct one.

gfwilliams commented 3 years ago

Thanks - just fixed.

It seems all of the SIGSEGV were related to an invalid free if there was an error in the condition for a while loop.