summaryrefslogtreecommitdiff
path: root/wrapping/java/openjp2/JavaOpenJPEGDecoder.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2016-01-06 21:34:59 +0100
committerStefan Weil <sw@weilnetz.de>2016-01-06 21:40:09 +0100
commit9cad6bc1f68be54189c6db8a7fcef6f994daf891 (patch)
tree41b58d90a04704e29c8d8bf1764e6265f8f6cc27 /wrapping/java/openjp2/JavaOpenJPEGDecoder.c
parent79b1c4cc85e5d1709cdb831561ba4927ea673514 (diff)
Fix fatal crash on 64 bit Linux
By default, OpenJPEG uses the function memalign to allocate aligned memory on Linux systems. That function needs malloc.h which was missing. This results in a compiler warning: openjpeg/src/lib/openjp2/opj_malloc.c:63:3: warning: implicit declaration of function ‘memalign’ [-Wimplicit-function-declaration] On hosts where sizeof(int) < sizeof(void *) the return value of memalign will be truncated which results in an invalid pointer. That caused "make test" to produce lots of segmentation faults when running on a 64 bit Linux host. Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'wrapping/java/openjp2/JavaOpenJPEGDecoder.c')
0 files changed, 0 insertions, 0 deletions