Commit 60e95a6
committed
builtin.c: fix signed integer overflow in jv2tm
jv2tm now properly clamps large number values to a signed 32-bit integer
and rejects nan.
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=658851 parent 1411ce6 commit 60e95a6
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | | - | |
| 1467 | + | |
| 1468 | + | |
1468 | 1469 | | |
1469 | 1470 | | |
1470 | 1471 | | |
1471 | 1472 | | |
1472 | | - | |
| 1473 | + | |
1473 | 1474 | | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
1474 | 1481 | | |
1475 | 1482 | | |
1476 | 1483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1585 | 1585 | | |
1586 | 1586 | | |
1587 | 1587 | | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
1588 | 1594 | | |
1589 | 1595 | | |
1590 | 1596 | | |
| |||
0 commit comments