commit | 9530388b260ddd47c4e013b10f7f56b987d4f79f | [log] [tgz] |
---|---|---|
author | Michael Lentine <mlentine@google.com> | Thu May 28 17:43:06 2015 -0700 |
committer | Dan Stoza <stoza@google.com> | Mon Jun 01 11:12:28 2015 -0700 |
tree | cbcb61c937ef8f1b241a26e6ebc1350c39dd9999 | |
parent | a8702c4765993f31a70243e4f89c251fe9911cde [diff] |
Check that width and height parameters are small. The product of width and height should be less than UINT32_MAX (in practice smaller). Adding the checks prevents overflows when allocating buffers. Bug: 20726612 Change-Id: I9769edf0688a9bfe69906d49fa0540cadf4c49b0 (cherry picked from commit 1c4537e2e80aa776a61517be8b1605e36432287a)