diff options
author | davidot <davidot@serenityos.org> | 2022-08-16 18:25:20 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-17 23:56:24 +0100 |
commit | 0f9434a02cb8d3be1d02eacf386839f0ac06cfda (patch) | |
tree | 3478907fa297d5b1e5bc6a6fd785a3e673f53523 /SECURITY.md | |
parent | 9d05ca7b20e30454b9751e00a8765feebac58a53 (diff) | |
download | serenity-0f9434a02cb8d3be1d02eacf386839f0ac06cfda.zip |
LibJS: Make StringToNumber case sensitive when falling back to strtod
We use strtod to convert a string to number after checking whether the
string is [+-]Infinity, however strtod also checks for either 'inf' or
'infinity' in a case-insensitive.
There are still valid cases for strtod to return infinity like 10e100000
so we just check if the "number" contains 'i' or 'I' in which case
the strtod infinity is not valid.
Diffstat (limited to 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions