Skip to content

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Apr 4, 2025

Previously, if the sum of the numeric, string, symbolic and exotic props overflowed MAX_INT32, we could be allocating a too small of a region and end up with a segfault.

Like in the fixed date parsing in case 030333c, check individual values against a reasonable max (100000000), and throw an out-of-memory exception before summing and letting them overflow.

Fix: #111

Previously, if the sum of the numeric, string, symbolic and exotic props
overflowed MAX_INT32, we could be allocating a too small of a region and end up
with a segfault.

Like in the fixed date parsing in case [1], check individual values against a
reasonable max (100000000), and throw an out-of-memory exception before summing and letting
them overflow.

[1]
bellard@030333c

Fix: bellard#111
@nickva nickva mentioned this pull request Apr 4, 2025
@nickva
Copy link
Contributor Author

nickva commented Apr 5, 2025

Better fix committed by Fabrice. Closing

@nickva nickva closed this Apr 5, 2025
@nickva nickva deleted the fix-get-own-property-segv branch April 5, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant