DescriptionBugs in CJS_PublicMethods::ParseNumber().
Fix the bugs by removing ParseNumber() entirely.
For PDFium's JavaScript bindings, we want to get out of the
numeric conversion business and inflict that on V8 as
possible, avoiding platform-specific issue in strtod().
For other uses, there is a FX_atof() which is similarly
buggy, but we can consolidate the use. Add an overloaded
FX_atof() to handle wide strings more simply.
BUG=pdfium:361
R=jochen@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/f13d510cf267c27f4c123494de67670ec201cedc
Patch Set 1 #
Total comments: 1
Patch Set 2 : Dead Code #Patch Set 3 : Remove entirely, pass "NaN" as NaN. #
Total comments: 5
Messages
Total messages: 17 (7 generated)
|