Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2007 18:08:36 GMT
From:      Ingo Schroeck<schroeck@internet-xs.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/110039: Ghostscript (afpl) crashes on amd64 with some input files.
Message-ID:  <200703071808.l27I8awc014507@www.freebsd.org>
Resent-Message-ID: <200703071810.l27IA4Sf012123@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703071808.l27I8awc014507>