Skip to content

Release 4.3.98

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Sep 12:55
1618253
Avoid out of bounds access in String::fromCharCode (#1254)

If c is negative (this can happen if char is signed), then accessing
sConstStrings[c] is an out of bounds memory access. This results in a
string being created from garbage memory, which can lead to seg faults
later on.

Taking the other branch is safer in this case.