summaryrefslogtreecommitdiff
path: root/vulkan/libvulkan/api.cpp
diff options
context:
space:
mode:
author Valerie Hau <vhau@google.com> 2019-10-18 13:25:27 -0700
committer Valerie Hau <vhau@google.com> 2019-10-24 14:22:55 -0700
commit587484f3bf75bfcdf918f2966886cd2c9cb60f7c (patch)
tree21bb2f541815260c9a1b211c53f522dc635ac90b /vulkan/libvulkan/api.cpp
parent61bbf23c716fff8c2ea53fdc02ed57ed26b1c2f5 (diff)
Capping buffer size to std::numeric_limits<size_t>::max()
If stride is set to nonsensical (if stride has no meaning for the particular buffer allocation) or to a stride size such that height * stride * bpp would overflow size_t, approximate buffer size with stride = width instead. Bug: 142767215 Test: build, boot, GraphicBufferAllocation_test Change-Id: Ia955246f529e46a80164d8b5c7bf59d0ec0def96 (cherry picked from commit 35493e7af48efce8886b67001ece69743d5a6199)
Diffstat (limited to 'vulkan/libvulkan/api.cpp')
0 files changed, 0 insertions, 0 deletions