summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2015-06-17 11:56:43 -0400
committerLeon Scroggins III <scroggo@google.com>2015-06-17 11:56:43 -0400
commit2a6d6e504712dcddd030a6007d9dfbb089258619 (patch)
treea796f39a0bf10b7e3deffbc2d512a243c7030018 /tools/aapt2/diff/Diff.cpp
parent641234c172ad72c332bca61fe9f73f8ad1fd8227 (diff)
Fixes for Region_writeToParcel.
Check the return value of Parcel::writeInplace. If it is NULL, there was a failure, so do not attempt to write to it. Instead, report the error and return false. If SkRegion::writeToMemory claims to have written a different amount of memory than it claimed it needed, report that error as well. Change uses of NULL in this function to nullptr. BUG:21271229 BUG:20666821 Change-Id: Ia6160f74f30bf42f5ff97f716dadb01d1f0d6961
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions