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

Issue 423473003: Fix image decoder memory overwrite bug. (Closed)

Created:
6 years, 5 months ago by scroggo
Modified:
6 years, 5 months ago
Reviewers:
djsollen
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Fix image decoder memory overwrite bug. In SkPNGImageDecoder::onDecodeSubset, use png_read_rows to write to the scratch memory provided. This is what we should have been doing anyway. Further, writing directly to the bitmap can cause writing to the wrong memory since the bitmap may not be as big as the scratch memory in the case of sampling with a short bitmap. Bug=b/13921093 Committed: https://skia.googlesource.com/skia/+/fc7063b3a50f4cf0801301f7b7b7b119f6b41cf8

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -4 lines) Patch
M src/images/SkImageDecoder_libpng.cpp View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scroggo
6 years, 5 months ago (2014-07-25 15:49:56 UTC) #1
djsollen
lgtm pending the trybots producing the results we expect.
6 years, 5 months ago (2014-07-25 16:10:06 UTC) #2
scroggo
On 2014/07/25 16:10:06, djsollen wrote: > lgtm pending the trybots producing the results we expect. ...
6 years, 5 months ago (2014-07-25 17:09:09 UTC) #3
scroggo
On 2014/07/25 17:09:09, scroggo wrote: > On 2014/07/25 16:10:06, djsollen wrote: > > lgtm pending ...
6 years, 5 months ago (2014-07-25 20:41:42 UTC) #4
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 5 months ago (2014-07-25 20:41:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/423473003/1
6 years, 5 months ago (2014-07-25 20:42:24 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-25 20:54:53 UTC) #7
Message was sent while issue was closed.
Change committed as fc7063b3a50f4cf0801301f7b7b7b119f6b41cf8

Powered by Google App Engine
This is Rietveld 408576698