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

Issue 2361303002: Avoid collisions in CPDF_IndirectObjectHolder::AddIndirectObject() (Closed)

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

Description

Avoid collisions in CPDF_IndirectObjectHolder::AddIndirectObject() The change at 5b7c9bb differed from the original code in that a pre-existing object would now be freed, which showed that a collision could be possible if m_LastObjNum overflowed. BUG=649206 Committed: https://pdfium.googlesource.com/pdfium/+/7757143c12c972c9b0813b5b53cecba33544e7f8

Patch Set 1 #

Patch Set 2 : Alternate solution #

Patch Set 3 : Dont hand out obj number 0 #

Patch Set 4 : back to old solution. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -0 lines) Patch
M core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp View 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
Tom Sepez
Lei, quick review.
4 years, 3 months ago (2016-09-22 23:57:09 UTC) #5
Tom Sepez
+npm in case Lei is occupied ..
4 years, 3 months ago (2016-09-23 16:06:47 UTC) #15
Lei Zhang
lgtm
4 years, 3 months ago (2016-09-23 17:19:07 UTC) #16
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/2361303002/40001
4 years, 3 months ago (2016-09-23 18:01:55 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_xfa_clang on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_xfa_clang/builds/931)
4 years, 3 months ago (2016-09-23 18:13:25 UTC) #20
Tom Sepez
Argh, introduced diffs by being clever. Restore exact old behaviour.
4 years, 3 months ago (2016-09-23 19:10:09 UTC) #21
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/2361303002/60001
4 years, 3 months ago (2016-09-23 19:10:36 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://pdfium.googlesource.com/pdfium/+/7757143c12c972c9b0813b5b53cecba33544e7f8
4 years, 3 months ago (2016-09-23 19:21:13 UTC) #26
Lei Zhang
4 years, 3 months ago (2016-09-23 19:29:48 UTC) #27
Message was sent while issue was closed.
whomp whomp

Powered by Google App Engine
This is Rietveld 408576698