https://bugs.kde.org/show_bug.cgi?id=407589
--- Comment #6 from Paul Floyd <pa...@free.fr> --- I'll look at reallocarray another day on FreeBSD (not a high priority for me). For aligned_alloc, I don't think that this will work well. The problem is that aligned_alloc and and memalign alias the same function on Linux GNU libc, i.e., paulf> nm /lib64/libc.so.6 | grep align | grep 0000000000081920 0000000000081920 W aligned_alloc 0000000000081920 t __GI___libc_memalign 0000000000081920 T __libc_memalign 0000000000081920 W memalign 0000000000081920 t __memalign Unless I'm much mistaken Valgrind can't redirect from one function address to two different functions. This limits the usefulness to either a libc with separate implementations of memalign/aligned_alloc or a replacement function. In practice this means that aligned_alloc uses will just show up as memaligns. I'll add a patch for this, but it will be of very limited use. I suggest simply updating the docs. -- You are receiving this mail because: You are watching all bug changes.