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

Issue 477413002: Add a null pointer check before getting the family name of the given color space in CPDF_ColorSpace… (Closed)

Created:
6 years, 4 months ago by jun_fang
Modified:
5 years, 9 months ago
Reviewers:
Tom Sepez, Bo Xu
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Visibility:
Public.

Description

Add a null pointer check before getting the family name of the given color space in CPDF_ColorSpace::Load The test file defines a wrong color space object (7 0 obj). In the content of 7 0 obj, the reserved obj (0 0 R) is used. The process of loading color space returns NULL when the reserved obj (0 0 R) is found. For the error color space, it only needs to return NULL when an error is detected. BUG=403032 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/4f38edb

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M core/src/fpdfapi/fpdf_page/fpdf_page_colors.cpp View 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
jun_fang
Please review this fix. Thanks!
6 years, 4 months ago (2014-08-17 07:43:52 UTC) #1
Tom Sepez
lgtm
6 years, 4 months ago (2014-08-18 18:11:34 UTC) #2
jun_fang
6 years, 4 months ago (2014-08-18 18:27:38 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as 4f38edb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698