summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorCasey Dahlin <sadmac@google.com>2016-10-26 17:18:25 -0700
committerCasey Dahlin <sadmac@google.com>2016-10-26 17:18:25 -0700
commit65a8f07e57a492289798ca709a311650b5bd5af1 (patch)
treed6d7cbaa1f769f8f1cb5d0158c8ae5498a00a607 /opengl/tests/gl_basic/gl_basic.cpp
parent8211047138ea7892c73f4e6f6291a85a11759e0c (diff)
Fix integer overflow in unsafeReadTypedVector
Passing a size to std::vector that is too big causes it to silently under-allocate when exceptions are disabled, leaving us open to an OOB write. We check the bounds and the resulting size now to verify allocation succeeds. Test: Verified reproducer attached to bug no longer crashes Camera service. Bug: 31677614 Change-Id: I064b1442838032d93658f8bf63b7aa6d021c99b7
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions