memalign has problem with _align > 8 - cause crash in OpenJPEG library
From RayeR@21:1/5 to All on Mon Sep 11 21:47:31 2023
Hi, I don't know if it's known bug or limitation, but i found this problem during compilation of OpenJPEG 1.5.0 library where demo programs crashed. After some fiddling I found that problem is in memalign() from current libc that OpenJPEG used with align
argument of value 16. When I lower the align to 8 it worked then without crashing. I decided to use _mm_malloc() insteasd that works with align of value 16 OK.
It may cause problems with other code that use memalign() so can someone patch the code in libc?