Historically, alignment and size weren't taken into account when freeing allocations since `free` just takes a pointer. With `free_sized` and `free_aligned_sized`, we can do these size and alignment checks in asan now. This adds a new report type specifically for these functions. Checking is hidden behind a new env flag `free_size_mismatch` which is enabled by default, but downstream users can opt out of it. The bulk of this PR was generated by gemini but thoroughly reviewed and edited by me to the best of my ability.
Compiler-RT ================================ This directory and its subdirectories contain source code for the compiler support routines. Compiler-RT is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt. ================================