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

Issue 1968743002: Fix a potential UAF with FPDFAvail_IsLinearized(). (Closed)

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

Description

Fix a potential UAF with FPDFAvail_IsLinearized(). Cache the linearized result rather than recalculating it. BUG=608778 Committed: https://pdfium.googlesource.com/pdfium/+/35c2100a5f6a466635bf99b4e7117d23aeb54d2c

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use cached result #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -33 lines) Patch
M core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp View 1 5 chunks +28 lines, -29 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_hint_tables.h View 2 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
Lei Zhang
4 years, 7 months ago (2016-05-10 22:20:48 UTC) #2
Wei Li
https://codereview.chromium.org/1968743002/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp File core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/1968743002/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp#newcode854 core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp:854: m_pHintTables.reset(); Will we lose hint stream info then? Will ...
4 years, 7 months ago (2016-05-11 00:26:25 UTC) #3
Lei Zhang
https://codereview.chromium.org/1968743002/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp File core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp (right): https://codereview.chromium.org/1968743002/diff/1/core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp#newcode854 core/fpdfapi/fpdf_parser/cpdf_data_avail.cpp:854: m_pHintTables.reset(); On 2016/05/11 00:26:25, Wei Li wrote: > Will ...
4 years, 7 months ago (2016-05-11 01:16:21 UTC) #4
Wei Li
lgtm
4 years, 7 months ago (2016-05-11 16:54:30 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1968743002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1968743002/20001
4 years, 7 months ago (2016-05-11 19:58:47 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 19:59:09 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/35c2100a5f6a466635bf99b4e7117d23aeb5...

Powered by Google App Engine
This is Rietveld 408576698