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

Issue 2640143003: Update safe numerics package to get bitwise ops (Closed)

Created:
3 years, 11 months ago by Tom Sepez
Modified:
3 years, 11 months ago
Reviewers:
dsinclair, jschuh
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Update safe numerics package to get bitwise ops Fix callers conventions to avoid ambiguity. Fix bad bounds check unmasked by change. Directly include headers no longer pulled in by numerics itself. Review-Url: https://codereview.chromium.org/2640143003 Committed: https://pdfium.googlesource.com/pdfium/+/4022f87eb8716155291543efaaf289e51d7cbf43

Patch Set 1 #

Patch Set 2 : Fix calling conventions #

Total comments: 1

Patch Set 3 : Fix bad bounds check #

Patch Set 4 : another test #

Patch Set 5 : 0 is a perfectly fine value of zero #

Total comments: 14

Patch Set 6 : Address reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1781 lines, -715 lines) Patch
M core/fpdfapi/font/fpdf_font_cid.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M core/fpdfapi/page/cpdf_psengine.h View 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/page/fpdf_page_func.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M core/fpdfapi/parser/cpdf_hint_tables.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/parser/cpdf_indirect_object_holder.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M core/fxcrt/cfx_string_data_template.h View 1 chunk +2 lines, -1 line 0 comments Download
M core/fxcrt/fx_basic_array.cpp View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
M core/fxcrt/fx_basic_util.cpp View 1 2 3 4 2 chunks +6 lines, -11 lines 0 comments Download
M core/fxcrt/fx_extension.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/ge/cfx_renderdevice.cpp View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M core/fxge/ge/fx_ge_text.cpp View 1 2 3 4 5 1 chunk +8 lines, -4 lines 0 comments Download
M third_party/agg23/agg_rasterizer_scanline_aa.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/base/numerics/safe_conversions.h View 1 chunk +238 lines, -32 lines 0 comments Download
M third_party/base/numerics/safe_conversions_impl.h View 4 chunks +605 lines, -89 lines 0 comments Download
M third_party/base/numerics/safe_math.h View 2 chunks +420 lines, -182 lines 0 comments Download
M third_party/base/numerics/safe_math_impl.h View 5 chunks +482 lines, -381 lines 0 comments Download
M xfa/fde/xml/fde_xml_imp.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (21 generated)
Tom Sepez
Justin, ptal.
3 years, 11 months ago (2017-01-19 19:51:19 UTC) #5
Tom Sepez
https://codereview.chromium.org/2640143003/diff/20001/core/fxge/ge/fx_ge_text.cpp File core/fxge/ge/fx_ge_text.cpp (right): https://codereview.chromium.org/2640143003/diff/20001/core/fxge/ge/fx_ge_text.cpp#newcode83 core/fxge/ge/fx_ge_text.cpp:83: std::min(rect.left, static_cast<int>(char_left.ValueOrDie<int>())); Cleaner way to do this? std::min() and ...
3 years, 11 months ago (2017-01-19 19:52:48 UTC) #6
dsinclair
https://codereview.chromium.org/2640143003/diff/80001/core/fpdfapi/font/fpdf_font_cid.cpp File core/fpdfapi/font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/2640143003/diff/80001/core/fpdfapi/font/fpdf_font_cid.cpp#newcode21 core/fpdfapi/font/fpdf_font_cid.cpp:21: #include "third_party/base/logging.h" What is this for? https://codereview.chromium.org/2640143003/diff/80001/core/fpdfapi/parser/cpdf_indirect_object_holder.cpp File core/fpdfapi/parser/cpdf_indirect_object_holder.cpp ...
3 years, 11 months ago (2017-01-23 14:46:33 UTC) #17
jschuh
https://codereview.chromium.org/2640143003/diff/80001/core/fpdfapi/font/fpdf_font_cid.cpp File core/fpdfapi/font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/2640143003/diff/80001/core/fpdfapi/font/fpdf_font_cid.cpp#newcode21 core/fpdfapi/font/fpdf_font_cid.cpp:21: #include "third_party/base/logging.h" On 2017/01/23 14:46:33, dsinclair wrote: > What ...
3 years, 11 months ago (2017-01-23 17:05:19 UTC) #18
Tom Sepez
https://codereview.chromium.org/2640143003/diff/80001/core/fpdfapi/font/fpdf_font_cid.cpp File core/fpdfapi/font/fpdf_font_cid.cpp (right): https://codereview.chromium.org/2640143003/diff/80001/core/fpdfapi/font/fpdf_font_cid.cpp#newcode21 core/fpdfapi/font/fpdf_font_cid.cpp:21: #include "third_party/base/logging.h" On 2017/01/23 17:05:19, jschuh wrote: > On ...
3 years, 11 months ago (2017-01-23 18:19:14 UTC) #19
jschuh
lgtm
3 years, 11 months ago (2017-01-23 22:30:17 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2640143003/100001
3 years, 11 months ago (2017-01-23 22:36:06 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-23 22:36:25 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/4022f87eb8716155291543efaaf289e51d7c...

Powered by Google App Engine
This is Rietveld 408576698