diff options
author | Clément Julliard <clju@google.com> | 2020-09-09 14:15:29 +0000 |
---|---|---|
committer | Clément Julliard <clju@google.com> | 2020-10-14 08:13:39 +0000 |
commit | 2b64421fef62202b472aa3e4499d26953621a1c7 (patch) | |
tree | ca7b396f9dd487dcba821ea9cc8f236f5e7cc6ef /rs/java/android/renderscript/ProgramStore.java | |
parent | 7518e2919646ac49f1f66792feba4a843e2c841f (diff) |
Add preconditions for YUV formats.
Width and height need to be even and > 0 for the calculated dataSize to
be valid.
Test: test app crashes with a meaningful error message instead of an
allocation failure.
Bug: 163175419
Change-Id: Ibcce3e62f89b7d19d64e8a5efe792b35af6ab401
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions