DescriptionFix image decoder memory overwrite bug.
In SkPNGImageDecoder::onDecodeSubset, use png_read_rows to write to
the scratch memory provided. This is what we should have been doing
anyway. Further, writing directly to the bitmap can cause writing
to the wrong memory since the bitmap may not be as big as the
scratch memory in the case of sampling with a short bitmap.
Bug=b/13921093
Committed: https://skia.googlesource.com/skia/+/fc7063b3a50f4cf0801301f7b7b7b119f6b41cf8
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|