summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibHTTP
diff options
context:
space:
mode:
authordavidot <davidot@serenityos.org>2022-08-16 18:25:20 +0200
committerLinus Groh <mail@linusgroh.de>2022-08-17 23:56:24 +0100
commit0f9434a02cb8d3be1d02eacf386839f0ac06cfda (patch)
tree3478907fa297d5b1e5bc6a6fd785a3e673f53523 /Userland/Libraries/LibHTTP
parent9d05ca7b20e30454b9751e00a8765feebac58a53 (diff)
downloadserenity-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 'Userland/Libraries/LibHTTP')
0 files changed, 0 insertions, 0 deletions