commit | fc7063b3a50f4cf0801301f7b7b7b119f6b41cf8 | [log] [tgz] |
---|---|---|
author | scroggo <scroggo@google.com> | Fri Jul 25 13:54:43 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Jul 25 13:54:43 2014 -0700 |
tree | 19ad14f5c6c31ab1f1ced475ab5c73c97940d6d3 | |
parent | d6aeb6dc8fe21066f1a2c4813a4256a3acd3edf5 [diff] |
Fix 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 R=djsollen@google.com Author: scroggo@google.com Review URL: https://codereview.chromium.org/423473003