Current-Users archive

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

Fix for libXfont in netbsd-6 and current



The segfault of Xorg described here

   http://mail-index.netbsd.org/netbsd-users/2012/05/13/msg010639.html

is fixed by the following patch.

It is applied ~9 months ago in upstream and included in libXfont-1.4.5.
For details, see 
http://lists.x.org/archives/xorg-devel/2011-September/024880.html

I'd like to commit this change to current and
pull-up to netbsd-6 (5.* too?). Objections?

Index: external/mit/libXfont/dist/src/bitmap/pcfread.c
===================================================================
RCS file: /cvsroot/xsrc/external/mit/libXfont/dist/src/bitmap/pcfread.c,v
retrieving revision 1.1.1.2
diff -u -u -3 -r1.1.1.2 pcfread.c
--- external/mit/libXfont/dist/src/bitmap/pcfread.c     10 Jun 2009 07:33:40 
-0000      1.1.1.2
+++ external/mit/libXfont/dist/src/bitmap/pcfread.c     14 May 2012 21:10:43 
-0000
@@ -408,6 +408,8 @@
 
     pFont->info.nprops = 0;
     pFont->info.props = 0;
+    pFont->info.isStringProp=0;
+
     if (!(tables = pcfReadTOC(file, &ntables)))
        goto Bail;
 


-- 
Best regards, Aleksey Cheusov.


Home | Main Index | Thread Index | Old Index