pdf: Early out from CopyImage if there's nothing to copy.
commit09555f6952ea240c33452dd0ee1575bc26f73195
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 20 Aug 2014 02:44:41 +0000 (20 02:44 +0000)
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 20 Aug 2014 02:46:34 +0000 (20 02:46 +0000)
treefd816de0ae8a13b23900d97cefd59e1dfc9e04c1
parent7998425d7c9f781de8bfad0428a0f0f94b563190
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

Review URL: https://codereview.chromium.org/465133005

Cr-Commit-Position: refs/heads/master@{#290736}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290736 0039d316-1c4b-4281-b951-d872f2087c98
pdf/draw_utils.cc