commit | d894c59881d1172f98981fa0da7a675cbd7130b8 | [log] [tgz] |
---|---|---|
author | Leon Scroggins III <scroggo@google.com> | Wed Jan 22 14:18:12 2020 -0500 |
committer | Leon Scroggins III <scroggo@google.com> | Wed Jan 22 14:18:12 2020 -0500 |
tree | 8b14f46d4dbc814dfdadcf01a786a71cd7e83cf1 | |
parent | 380f3c9ae622c7284d88afbab4732291b472f64b [diff] |
AImageDecoder: ensure that stride is pixel aligned Bug: 147749998 Test: I902de3410c45a21cf27b48a02cdc5d514b7ada60 If the client uses a stride that is not pixel aligned, AImageDecoder will crash internally trying to access the memory. Return a failure instead of crashing. Rely on SkImageInfo to compute the minimum size required, too. Change-Id: Ia4d14d6209e6f4af74906ff43208fa83ac82cbcd