commit | 49f5da728fec84c7bacf58237945cb0e3d66b3c8 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Tue Dec 13 10:57:43 2016 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Dec 13 16:31:53 2016 +0000 |
tree | e0fb0f02f023c5de59a8b1911ec822f382f55662 | |
parent | aaa6d7718ed6dc5c463dd297591e975831bc0a1b [diff] |
Fix out of bounds memory write in SkGifCodec Follow on to 5860. When computing left and top, divide by the sample size directly rather than using get_scaled_dimension, which promotes 0 to 1, potentially moving the area to clear outside the bounds of the image. BUG=skia:6046 Change-Id: I87c3fe88fadb400743174af9f9a277acd4fbc279 Reviewed-on: https://skia-review.googlesource.com/5924 Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Leon Scroggins <scroggo@google.com>