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

Issue 1374493002: SkStream: don't segfault on empty asset getMemoryBase(). (Closed)

Created:
5 years, 2 months ago by hal.canary
Modified:
5 years, 2 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkBlockMemoryStream: correct test in getMemoryBase(). The test "nullptr == fBlockMemory->fHead->fNext" tests that all of the data is in one block, but it is also necessary to test "fBlockMemory->fHead" to ensure that there is a first block with data in it. Committed: https://skia.googlesource.com/skia/+/209c1624addaa7f7e63b79d286bd350342740a00

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -1 line) Patch
M src/core/SkStream.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M tests/StreamTest.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
halcanary_use_other_email
PTAL
5 years, 2 months ago (2015-09-26 23:48:12 UTC) #2
bungeman-skia
lgtm
5 years, 2 months ago (2015-09-28 14:23:11 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1374493002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1374493002/1
5 years, 2 months ago (2015-09-28 14:23:21 UTC) #5
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 14:29:44 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/209c1624addaa7f7e63b79d286bd350342740a00

Powered by Google App Engine
This is Rietveld 408576698