diff options
| author | Michael Lentine <mlentine@google.com> | 2015-05-28 17:43:06 -0700 |
|---|---|---|
| committer | Dan Stoza <stoza@google.com> | 2015-06-01 11:12:28 -0700 |
| commit | 9530388b260ddd47c4e013b10f7f56b987d4f79f (patch) | |
| tree | cbcb61c937ef8f1b241a26e6ebc1350c39dd9999 /opengl/tests/gl_basic/gl_basic.cpp | |
| 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)
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions
