diff options
author | Jeff Epler <jepler@gmail.com> | 2018-05-19 10:56:34 -0500 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-05-21 12:37:57 +1000 |
commit | 4f71a2a75a71b89dad2eed147d6e237b633b878e (patch) | |
tree | df59b91fe3299dbe213a9bdd31875ab790df55f1 /tests/float/float_parse.py | |
parent | 5efc575067df17be785d2b60124706d789d6cfe0 (diff) | |
download | micropython-4f71a2a75a71b89dad2eed147d6e237b633b878e.tar.gz micropython-4f71a2a75a71b89dad2eed147d6e237b633b878e.zip |
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 'tests/float/float_parse.py')
0 files changed, 0 insertions, 0 deletions