Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sim: fix kasan report memalign crash when alignment is 1
(0)Allocating 3 bytes aligned to 0x00000001 ================================================================= ==1461685==ERROR: AddressSanitizer: invalid alignment requested in posix_memalign: 1, alignment must be a power of two and a multiple of sizeof(void*) == 4 (thread T0) #0 0xf7ab1c2f in __interceptor_posix_memalign ../../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:226 Signed-off-by: ligd <liguiding1@xiaomi.com>
- Loading branch information