diff options
author | drochner <drochner@pkgsrc.org> | 2008-03-05 19:12:16 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2008-03-05 19:12:16 +0000 |
commit | 6ab2baf2041544d593cfc8de1507a452b0f0914f (patch) | |
tree | 11a584cc2e877bda4537be7e441f74c53ce44318 /print/ghostscript/patches | |
parent | f45ff136c46882593507ecc7e298de5acb982641 (diff) | |
download | pkgsrc-6ab2baf2041544d593cfc8de1507a452b0f0914f.tar.gz |
fix a botched pointer comparision which fails if the pointer difference
overflows the signed integer range, this fixes font problems in PDF
creation for me,
bump PKGREVISION
Diffstat (limited to 'print/ghostscript/patches')
-rw-r--r-- | print/ghostscript/patches/patch-ae | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/print/ghostscript/patches/patch-ae b/print/ghostscript/patches/patch-ae new file mode 100644 index 00000000000..32c05a88e1b --- /dev/null +++ b/print/ghostscript/patches/patch-ae @@ -0,0 +1,13 @@ +$NetBSD: patch-ae,v 1.3 2008/03/05 19:12:16 drochner Exp $ + +--- src/gscencs.c.orig 2008-03-05 20:02:12.000000000 +0100 ++++ src/gscencs.c +@@ -117,7 +117,7 @@ bool + gs_is_c_glyph_name(const byte *str, uint len) + { + return (str >= (const byte *)gs_c_known_encoding_chars && +- (str - (const byte *)gs_c_known_encoding_chars) < ++ (unsigned long)(str - (const byte *)gs_c_known_encoding_chars) < + gs_c_known_encoding_total_chars); + } + |