Describe the bug
Enabling MEMORY_ALLOCATION_SAFETY_LEVEL_2 uses SafeMemory module for allocation, deallocate and reallocate memory.
But there is a problem in checked_aligned_malloc and checked_aligned_realloc functions, leading to heap corruption.
To Reproduce
Steps to reproduce the behavior:
Enable MEMORY_ALLOCATION_SAFETY_LEVEL_2 flag in the main makefile of VulkanRenderer
Clean and Re-build the build
Run the test DEPTH_RENDER_TEXTURE in gdb and application verifier
The heap corruption might occur during the loop
Or when you terminate the application by closing the window
Expected behavior
There shouldn't be any breaks while running in gdb
Screenshots
Additional context
There might be a need to precisely implement custom aligned allocators, and reallocators.
Describe the bug Enabling MEMORY_ALLOCATION_SAFETY_LEVEL_2 uses SafeMemory module for allocation, deallocate and reallocate memory. But there is a problem in checked_aligned_malloc and checked_aligned_realloc functions, leading to heap corruption.
To Reproduce Steps to reproduce the behavior:
Expected behavior There shouldn't be any breaks while running in gdb
Screenshots
Additional context There might be a need to precisely implement custom aligned allocators, and reallocators.