https://bugs.kde.org/show_bug.cgi?id=466105
Bug ID: 466105 Summary: alligned_alloc problems, part 2 Classification: Developer tools Product: valgrind Version: 3.21 GIT Platform: Other OS: All Status: REPORTED Severity: normal Priority: NOR Component: memcheck Assignee: jsew...@acm.org Reporter: pjfl...@wanadoo.fr Target Milestone: --- We don't warn when invalid arguments are used for alligned allocation functions. For instance memcheck/tests/memalign2_asan ================================================================= ==54416==ERROR: AddressSanitizer: invalid alignment requested in posix_memalign: -1, alignment must be a power of two and a multiple of sizeof(void*) == 8 (thread T0) #0 0x28e397 in posix_memalign /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:210:3 #1 0x2b7a46 in main /home/paulf/scratch/valgrind/memcheck/tests/memalign2.c:123:10 #2 0x23533f in _start /usr/src/lib/csu/amd64/crt1_c.c:75:7 #3 0x8002dd007 (<unknown module>) ==54416==HINT: if you don't care about these errors you may set allocator_may_return_null=1 SUMMARY: AddressSanitizer: invalid-posix-memalign-alignment /usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_malloc_linux.cpp:210:3 in posix_memalign ==54416==ABORTING -- You are receiving this mail because: You are watching all bug changes.