OSDN Git Service

libvulkan: Enable integer sanitization
authorJesse Hall <jessehall@google.com>
Mon, 29 Feb 2016 04:48:56 +0000 (20:48 -0800)
committerJesse Hall <jessehall@google.com>
Mon, 29 Feb 2016 04:48:56 +0000 (20:48 -0800)
commitc4eee83b6eb4b4ebc67ddda2c7119988ce654101
treeaccf29286d6b991d440953ad2ea695c607d288e6
parented9e142fb6874cd1d3cbeb655c700c9a0126ba5a
libvulkan: Enable integer sanitization

This causes the compiler to add runtime checks for undefined (e.g.
shift by larger than bitwidth) or suspicious (e.g. unsigned integer
overflow) operations. The process will abort if they occur.

In particular, we do many allocations of the form pfnAllocation(n *
sizeof(T)); if 'n' is large these will overflow and we'll allocate
less memory than expected, possibly leading to exploitable buffer
overruns.

Requested during security audit in bug 27118888.

Change-Id: Id81c94595579df034b948a40270f164e38635070
vulkan/libvulkan/Android.mk