summaryrefslogtreecommitdiff
path: root/py/objfloat.c
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2018-05-19 10:56:34 -0500
committerDamien George <damien.p.george@gmail.com>2018-05-21 12:37:57 +1000
commit4f71a2a75a71b89dad2eed147d6e237b633b878e (patch)
treedf59b91fe3299dbe213a9bdd31875ab790df55f1 /py/objfloat.c
parent5efc575067df17be785d2b60124706d789d6cfe0 (diff)
py/parsenum: Avoid undefined behavior parsing floats with large exponents.
Fuzz testing combined with the undefined behavior sanitizer found that parsing unreasonable float literals like 1e+9999999999999 resulted in undefined behavior due to overflow in signed integer arithmetic, and a wrong result being returned.
Diffstat (limited to 'py/objfloat.c')
0 files changed, 0 insertions, 0 deletions