[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#390875: gs-gpl: patch to make qsort call in src/gxfcopy.c 64-bit clean



tags 390875 -moreinfo
tags 390875 -unreproducible
thanks

Andreas Jochens <aj@andaco.de> wrote:

> the attached patch changes the qsort function call in src/gxfcopy.c
> so that it becomes 64-bit clean. 
>
> Without this patch, the code segfaults when qsort calls the
> compare_glyph_names function because sizeof(int) == 4 but 
> sizeof(gs_copied_glyph_name_t*) == 8 on most 64-bit architectures.

Has anybody checked whether the same problem exists in the other gs
incarnations, too?  I'd assume the code is pretty much the same, just
the upstream version differs?

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)




Reply to: