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

Issue 465133005: pdf: Early out from CopyImage if there's nothing to copy. (Closed)

Created:
6 years, 4 months ago by sadrul
Modified:
6 years, 4 months ago
Reviewers:
Lei Zhang
CC:
chromium-reviews
Project:
chromium
Visibility:
Public.

Description

pdf: Early out from CopyImage if there's nothing to copy. If CopyImage is called with src is an empty rectangle (this can happen for example if one of the resources is not available), then the code ends up trying to read from null/uninitialized memory. So early out instead in such cases. BUG=401242 R=thestig@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290736

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M pdf/draw_utils.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
sadrul
6 years, 4 months ago (2014-08-19 22:42:48 UTC) #1
Lei Zhang
lgtm
6 years, 4 months ago (2014-08-19 22:47:29 UTC) #2
sadrul
6 years, 4 months ago (2014-08-20 02:45:36 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as 290736 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698