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

Issue 478183002: Add a null check before getting unicode text in CPDF_FormField::GetValue (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 check before getting unicode text in CPDF_FormField::GetValue The test pdf file defines an invalid dictionary object with a NULL arrary in the filed of "/V". It causes that a NULL object is returned when trying to get the first element of this arrary. So it needs to check whether the returned object is NULL. BUG=395986 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/91177a4

Patch Set 1 #

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

Messages

Total messages: 3 (0 generated)
jun_fang
Please review this change. Thanks!
6 years, 4 months ago (2014-08-17 22:39:48 UTC) #1
Tom Sepez
lgtm
6 years, 4 months ago (2014-08-18 18:08:35 UTC) #2
jun_fang
6 years, 4 months ago (2014-08-18 18:31:06 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as 91177a4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698