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

Issue 2095763003: Improve hint table validation checks. (Closed)

Created:
4 years, 6 months ago by Lei Zhang
Modified:
4 years, 6 months ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Improve hint table validation checks. Check required hint table dictionary entries and make sure they: - Exist. - Are of the right type. Along the way: - Fix FX_atonum() to not have a non-const pass-by-ref param. - Simplify code in CPDF_StreamContentParser. - Make CPDF_Number::IsInteger() a const method. BUG=610555 Committed: https://pdfium.googlesource.com/pdfium/+/29d447ae35101675a2a2d8bc1dcfca65de7f3929

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -72 lines) Patch
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 2 chunks +21 lines, -21 lines 0 comments Download
M core/fpdfapi/fpdf_page/pageint.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp View 3 chunks +27 lines, -14 lines 2 comments Download
M core/fpdfapi/fpdf_parser/cpdf_number.cpp View 2 chunks +6 lines, -7 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_number.h View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fxcrt/fx_basic_util.cpp View 1 chunk +27 lines, -26 lines 0 comments Download
M core/fxcrt/include/fx_string.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (4 generated)
Lei Zhang
4 years, 6 months ago (2016-06-23 22:32:19 UTC) #3
dsinclair
https://codereview.chromium.org/2095763003/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp File core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/2095763003/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp#newcode749 core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp:749: if (nHintStreamSize != 2 && nHintStreamSize != 4) { ...
4 years, 6 months ago (2016-06-23 23:35:26 UTC) #4
Lei Zhang
https://codereview.chromium.org/2095763003/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp File core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/2095763003/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp#newcode749 core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp:749: if (nHintStreamSize != 2 && nHintStreamSize != 4) { ...
4 years, 6 months ago (2016-06-24 00:37:43 UTC) #5
dsinclair
lgtm
4 years, 6 months ago (2016-06-24 02:57:19 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2095763003/1
4 years, 6 months ago (2016-06-24 02:57:30 UTC) #8
commit-bot: I haz the power
4 years, 6 months ago (2016-06-24 02:57:50 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/29d447ae35101675a2a2d8bc1dcfca65de7f...

Powered by Google App Engine
This is Rietveld 408576698