vulkan-wsi-layer/util
Fufu Fang c6a38f53c2 Casting operands to a wider type to prevent integer overflow
Previously the calculation for total_size was done in 32-bits, as the
operands were all 32-bit signed or unsigned integers. This led to
integer overflow when the extent being allocated is too large.
total_size is finally cast to size_t, as the kernel UAPI for ION uses
size_t.

Change-Id: I7a76b2c18be25fda0bf6ef70cd8a6fe717c2903c
Signed-off-by: Fufu Fang <fufu.fang@arm.com>
2021-12-10 12:11:30 +00:00
..
drm Add versioning to wsialloc interface 2021-11-15 13:59:10 +00:00
wsialloc Casting operands to a wider type to prevent integer overflow 2021-12-10 12:11:30 +00:00
custom_allocator.cpp Set default visiblity of functions to hidden 2021-11-08 13:42:20 +00:00
custom_allocator.hpp Fix OOM issue 2021-11-11 18:27:31 +00:00
extension_list.cpp Improve error handling when copying extension name 2021-11-29 09:18:11 +00:00
extension_list.hpp Store enabled instance and device extensions 2021-11-17 11:51:30 +00:00
file_descriptor.hpp Fix OOM issue 2021-11-11 18:27:31 +00:00
helpers.hpp Fix OOM issue 2021-11-11 18:27:31 +00:00
log.cpp Fix formatting issues 2021-10-29 08:51:25 +00:00
log.hpp Fix formatting issues 2021-10-29 08:51:25 +00:00
macros.hpp Set default visiblity of functions to hidden 2021-11-08 13:42:20 +00:00
optional.hpp Fix OOM issue 2021-11-11 18:27:31 +00:00
platform_set.hpp layer: improve how layer handles Vulkan extensions 2021-02-05 11:22:32 +00:00
ring_buffer.hpp Fix formatting issues 2021-10-29 08:51:25 +00:00
timed_semaphore.cpp Update code to use modern c++ style 2021-11-11 10:15:22 +00:00
timed_semaphore.hpp Fix OOM issue 2021-11-11 18:27:31 +00:00
unordered_map.hpp Fix OOM issue 2021-11-11 18:27:31 +00:00
unordered_set.hpp Fix OOM issue 2021-11-11 18:27:31 +00:00