Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Issue 1828873002: Fix FXSYS_StrToInt() (Closed)

Created:
4 years, 9 months ago by Wei Li
Modified:
4 years, 9 months ago
Reviewers:
Tom Sepez, dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix FXSYS_StrToInt() Correctly handle sign and out of range values. R=dsinclair@chromium.org, tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/6d18bd3b8ec82ae3c24a439f5c7925786a0e2d8b

Patch Set 1 : #

Total comments: 10

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -36 lines) Patch
M core/fxcrt/fx_basic_gcc.cpp View 1 1 chunk +14 lines, -4 lines 0 comments Download
M core/fxcrt/fx_basic_gcc_unittest.cpp View 1 4 chunks +55 lines, -32 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
Wei Li
Stumbled upon this while trying to clear a warning. Fix this first. PTAL.
4 years, 9 months ago (2016-03-24 01:23:02 UTC) #3
dsinclair
https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp File core/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp#newcode28 core/fxcrt/fx_basic_gcc.cpp:28: if (std::numeric_limits<IntType>::is_signed) { I didn't make this change originally ...
4 years, 9 months ago (2016-03-24 01:40:44 UTC) #5
Wei Li
https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp File core/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp#newcode28 core/fxcrt/fx_basic_gcc.cpp:28: if (std::numeric_limits<IntType>::is_signed) { On 2016/03/24 01:40:44, dsinclair wrote: > ...
4 years, 9 months ago (2016-03-24 02:27:42 UTC) #6
dsinclair
https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp File core/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp#newcode20 core/fxcrt/fx_basic_gcc.cpp:20: bool neg = *str == '-'; This loses the ...
4 years, 9 months ago (2016-03-24 02:41:06 UTC) #7
Wei Li
https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp File core/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp#newcode20 core/fxcrt/fx_basic_gcc.cpp:20: bool neg = *str == '-'; On 2016/03/24 02:41:06, ...
4 years, 9 months ago (2016-03-24 17:31:25 UTC) #8
dsinclair
lgtm https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp File core/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp#newcode20 core/fxcrt/fx_basic_gcc.cpp:20: bool neg = *str == '-'; On 2016/03/24 ...
4 years, 9 months ago (2016-03-24 18:10:11 UTC) #9
Wei Li
thanks https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp File core/fxcrt/fx_basic_gcc.cpp (right): https://codereview.chromium.org/1828873002/diff/20001/core/fxcrt/fx_basic_gcc.cpp#newcode20 core/fxcrt/fx_basic_gcc.cpp:20: bool neg = *str == '-'; On 2016/03/24 ...
4 years, 9 months ago (2016-03-24 23:25:46 UTC) #12
Tom Sepez
lgtm
4 years, 9 months ago (2016-03-25 19:43:36 UTC) #13
Wei Li
4 years, 9 months ago (2016-03-25 22:02:22 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:80001) manually as
6d18bd3b8ec82ae3c24a439f5c7925786a0e2d8b (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698