ports/110039: Ghostscript (afpl) crashes on amd64 with some input files.

Ingo Schroeck schroeck at internet-xs.de
Wed Mar 7 18:10:04 UTC 2007


>Number:         110039
>Category:       ports
>Synopsis:       Ghostscript (afpl) crashes on amd64 with some input files.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 07 18:10:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ingo Schroeck
>Release:        6
>Organization:
Internet XS Service GmbH
>Environment:
FreeBSD xxx 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Mon Nov 20 15:03:01 CET 2006     xxx  amd64


>Description:
Ghostscript (afpl) crashes on amd64 with some input files. The attached patch solves the Problem.
>How-To-Repeat:
-
>Fix:
http://www.mail-archive.com/debian-bugs-rc@lists.debian.org/msg75527.html

Patch from that site fixes the Problem:

diff -urN ../tmp-orig/gs-gpl-8.54.dfsg.1/src/gxfcopy.c ./src/gxfcopy.c
--- ../tmp-orig/gs-gpl-8.54.dfsg.1/src/gxfcopy.c        2006-03-23 
12:39:23.000000000 +0000
+++ ./src/gxfcopy.c     2006-10-11 08:18:45.000000000 +0000
@@ -2391,7 +2391,7 @@
            a[j++] = &cfdata->names[i];
        }
     }
-    qsort(a, cfdata->num_glyphs, sizeof(int), compare_glyph_names);
+    qsort(a, cfdata->num_glyphs, sizeof(gs_copied_glyph_name_t*), 
compare_glyph_names);
     for (; j >= 0; j--)
        cfdata->glyphs[j].order_index = a[j] - cfdata->names;    
     gs_free_object(memory, a, "order_font_data");

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list