]> git.kaiwu.me - quickjs.git/commit
Fix UB signed integer overflow in js_math_imul
authorCharlie Gordon <github@chqrlie.org>
Sat, 17 Feb 2024 20:15:29 +0000 (21:15 +0100)
committerCharlie Gordon <github@chqrlie.org>
Sat, 17 Feb 2024 20:15:29 +0000 (21:15 +0100)
commit85fb2caeae86bc7962ff8740f24a3f462e8b3f53
treecef1e7770ab68982045d51e0349feb1d0a58f2f7
parent8df432755914ca02476b34d9bf0e54e21d75b05f
Fix UB signed integer overflow in js_math_imul

- Use uint32_t arithmetics and Standard conformant conversion to
  avoid UB in js_math_imul.
- add builtin tests
- use specific object directories for SAN targets
Makefile
quickjs.c
tests/test_builtin.js