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

Issue 2484953003: Force compiler to deduce src type for checked_cast<dst, src>. (Closed)

Created:
4 years, 1 month ago by Tom Sepez
Modified:
4 years, 1 month ago
Reviewers:
Lei Zhang, jschuh
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Force compiler to deduce src type for checked_cast<dst, src>. Otherwise, we might be silently doing an unsafe cast before applying the check if the actual argument doesn't match the exact src type. Committed: https://pdfium.googlesource.com/pdfium/+/4e597c8fd5d604273266ea19a1074a2c870ba224

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -10 lines) Patch
M core/fpdfapi/parser/cpdf_parser.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M core/fpdfdoc/cpdf_formfield.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfview.cpp View 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/base/stl_util.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (8 generated)
Tom Sepez
Lei, quick review of some cleanup Justin discovered. Thanks.
4 years, 1 month ago (2016-11-07 23:00:45 UTC) #3
Lei Zhang
lgtm
4 years, 1 month ago (2016-11-07 23:08:02 UTC) #7
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/2484953003/1
4 years, 1 month ago (2016-11-07 23:10:39 UTC) #10
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 23:16:05 UTC) #12
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/4e597c8fd5d604273266ea19a1074a2c870b...

Powered by Google App Engine
This is Rietveld 408576698