sthen faaa02a98e MuPDF does some locking around its allocation calls; it overrides openjpeg's
allocators to do this locking too. However mupdf tries to manually align things
in a way that doesn't match what openjpeg does, which we noticed when frees
were segfaulting because the addresses didn't match up.

In the case of the openjpeg port it's relying on malloc(3)'s guarantee
"The allocated space is suitably aligned (after possible pointer coercion)
for storage of any type of object" so patch mupdf to do the same.

Fixes crash noticed by jca@ in https://www.broadband-forum.org/technical/download/TR-177.pdf
2017-10-10 12:33:49 +00:00
..
2014-06-12 14:07:19 +00:00