diff options
author | Michael Jones <michaelrj@google.com> | 2023-04-12 11:26:18 -0700 |
---|---|---|
committer | Michael Jones <michaelrj@google.com> | 2023-04-12 15:27:03 -0700 |
commit | 3d953234fede3cb0532c876fd4ba9ea4d89fbd7c (patch) | |
tree | 11e2b3ff82698bb6eb1d6e8a62766291bbe9068d /lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp | |
parent | efc8b52cbd942f4bd5ffe8f64da5fb8a3b7adc32 (diff) | |
download | llvm-3d953234fede3cb0532c876fd4ba9ea4d89fbd7c.zip llvm-3d953234fede3cb0532c876fd4ba9ea4d89fbd7c.tar.gz llvm-3d953234fede3cb0532c876fd4ba9ea4d89fbd7c.tar.bz2 |
[libc] Fix strtod exponent overflow bug
String to float has a condition to prevent overflowing the exponent with
the E notation. To do this it checks if adding that exponent to the
exponent found by parsing the number is greater than the maximum
exponent for the given size of float. The if statements had a gap on
exactly the maximum exponent value that caused it to be treated as the
minimum exponent value. This patch fixes those conditions.
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D148152
Diffstat (limited to 'lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp')
0 files changed, 0 insertions, 0 deletions