os/os_memory_aligned.h: Handle integer overflow.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 22 Apr 2015 19:23:59 +0000 (20:23 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Thu, 23 Apr 2015 20:59:43 +0000 (21:59 +0100)
commit525be9c0791e4a447335307b5f225273b9da0cca
tree85552a0f04c9d9b24037c7b369ffed0336cabe3a
parentf2a7fd9943fcb7d3de3bc2b21907e0a157b88e96
os/os_memory_aligned.h: Handle integer overflow.

This code is only used when our memory debugging wrappers are enabled,
as we use the C runtime functions directly elsewhere.

Tested llvmpipe on Windows w/ memory debugging enabled.

VMware PR894263.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/os/os_memory_aligned.h