On some PDF documents I created with pdflatex mupdf 1.8p4 segfaults
in fz_process_path() (source/fitz/path.c)

The following upstream fix solves the issue for me. 
http://git.ghostscript.com/?p=mupdf.git;a=commit;h=47078209046ed26ff7828a73d5d43afe08a6941d

Below is a proposed patch file "patch-source_fitz_path_c"
based on the above upstream diff.

Holger
;-se


$ cat /usr/ports/textproc/mupdf/patches/patch-source_fitz_path_c

Bug 696630: Avoid needless (and potentially wrong) dereference.

--- source/fitz/path.c.orig     Sat Nov 29 00:01:34 2014
+++ source/fitz/path.c  Sat Nov 29 00:01:39 2014
@@ -580,8 +580,8 @@
 {
        int i, k, cmd_len;
        float x, y, sx, sy;
-       uint8_t *cmds = path->cmds;
-       float *coords = path->coords;
+       uint8_t *cmds;
+       float *coords;
 
        switch (path->packed)
        {

Reply via email to