summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMichael Lentine <mlentine@google.com>2015-05-28 17:43:06 -0700
committerMichael Lentine <mlentine@google.com>2015-05-29 10:54:30 -0700
commit1c4537e2e80aa776a61517be8b1605e36432287a (patch)
treecfe8ccd1102f2d5581c64b97eb086c7204db4f1b /opengl/tests/gl_basic/gl_basic.cpp
parent6e1a2fea67006b58e83ebbcc72f7b12f18c49d15 (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
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions