commit | 1c4537e2e80aa776a61517be8b1605e36432287a | [log] [tgz] |
---|---|---|
author | Michael Lentine <mlentine@google.com> | Thu May 28 17:43:06 2015 -0700 |
committer | Michael Lentine <mlentine@google.com> | Fri May 29 10:54:30 2015 -0700 |
tree | cfe8ccd1102f2d5581c64b97eb086c7204db4f1b | |
parent | 6e1a2fea67006b58e83ebbcc72f7b12f18c49d15 [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