summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2013-10-07 16:32:14 -0400
committerLeon Scroggins III <scroggo@google.com>2013-10-07 17:30:47 -0400
commitf65183fd76aa82eedaebcbde9395a5dba42fc969 (patch)
tree318ba1c82881ab9b6acc47a72dd978bd44a45044 /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java
parent9ca82d333cfeb7aa5218efbca95763c15dc440e9 (diff)
Do not attempt to decode NULL SkData.
NewFromFD fails if mmap fails. In that case, it returns a NULL SkData. SkMemoryStream handles NULL input by calling SkData::NewEmpty, which is not threadsafe. If the SkMemoryStream were to get some busted SkData, its call to read might fail. Sidestep this problem by not creating the SkMemoryStream if the SkData is NULL, skipping the call to SkData::NewEmpty. BUG:11028218 Change-Id: Id70299bef1c85ffb5d17102fdb5ea071b0bee68a
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions