DescriptionEnsure that SkMemoryStream does not crash dereferencing fData.
SkMemoryStream attempts to dereference fData in multiple places.
Instead of allowing it to be NULL, resulting in a crash, set it
to SkData::NewEmpty().
Add a test for SkStream that will crash when its SkData is set to NULL.
Committed: https://code.google.com/p/skia/source/detail?r=7111
Patch Set 1 #
MessagesTotal messages: 3
|