tag 476736 patch
thanks

#476736 - efax: efix segfaults on text file
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476736

f->font, f->charw, f->charh, f->lmargin, f->pglines are used before set in 
text_first in efaxlib.c.

--- efix.c.orig    Thu Apr 24 20:14:41 2008 +0200
+++ efix.c    Thu Apr 24 20:57:07 2008 +0200
@@ -235,7 +235,8 @@ int main( int argc, char **argv)
   float                                /* values used: */
     xres = 0, yres = 0, xsz = 0, ysz = 0 ;

-  IFILE ifile, ovfile ;
+  IFILE ifile = { 0, 0, {}, 0, 0, 0, 0, {}, 0, 0, {}, 0, 0, 0, 0 } ;
+  IFILE ovfile = { 0, 0, {}, 0, 0, 0, 0, {}, 0, 0, {}, 0, 0, 0, 0 } ;
   OFILE ofile ;

   char **ifnames,  *ovfnames [ 2 ] = { 0, 0 } ;



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to