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

Issue 936133003: Fixing possible out of bound memory access (Closed)

Created:
5 years, 10 months ago by sugoi1
Modified:
5 years, 10 months ago
Reviewers:
scroggo, reed2
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Fixing possible out of bound memory access This was a bug found by ASAN. When width is very small, we can have something like width == 1 and rowBytes == 8. Using "2 * yWidth" (2) would be smaller than rowBytesY (8), so we could read memory out of bounds. This issue has a separate fix in blink (crbug.com/458861). BUG=skia: Committed: https://skia.googlesource.com/skia/+/f421ec6cc9c8f32d717b9b1df71fd9e79817a16c

Patch Set 1 #

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

Messages

Total messages: 6 (2 generated)
sugoi1
5 years, 10 months ago (2015-02-19 00:03:06 UTC) #2
scroggo
lgtm
5 years, 10 months ago (2015-02-19 13:14:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/936133003/1
5 years, 10 months ago (2015-02-19 13:26:14 UTC) #5
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 13:32:15 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/f421ec6cc9c8f32d717b9b1df71fd9e79817a16c

Powered by Google App Engine
This is Rietveld 408576698