commit | 35493e7af48efce8886b67001ece69743d5a6199 | [log] [tgz] |
---|---|---|
author | Valerie Hau <vhau@google.com> | Fri Oct 18 13:25:27 2019 -0700 |
committer | Valerie Hau <vhau@google.com> | Tue Oct 22 16:08:04 2019 -0700 |
tree | 31592be2e879ef80d751f170c9cd5e8c084ba10d | |
parent | 13bd8e4d100b7be8a7333a0357c74ca5fc1ca6b1 [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