OSDN Git Service

Check that width and height parameters are small.
authorMichael Lentine <mlentine@google.com>
Fri, 29 May 2015 00:43:06 +0000 (17:43 -0700)
committerMichael Lentine <mlentine@google.com>
Fri, 29 May 2015 17:54:30 +0000 (10:54 -0700)
commit1c4537e2e80aa776a61517be8b1605e36432287a
treecfe8ccd1102f2d5581c64b97eb086c7204db4f1b
parent6e1a2fea67006b58e83ebbcc72f7b12f18c49d15
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
opengl/libagl/egl.cpp