ccxvii / mujs

An embeddable Javascript interpreter in C.
http://mujs.com/
ISC License
813 stars 98 forks source link

Prevent negative table indexing in js_strtol #146

Closed ConnorNelson closed 3 years ago

ConnorNelson commented 3 years ago

Currently, when the value of a character in the string is >= 0x80, it will be interpreted as a negative value, and will negatively index into the table (out-of-bounds).