Enlightenment CVS committal Author : doursse Project : e17 Module : proto
Dir : e17/proto/epdf/src/lib Modified Files: poppler_fontinfo.cpp Log Message: fix seg fault when font path is NULL =================================================================== RCS file: /cvs/e/e17/proto/epdf/src/lib/poppler_fontinfo.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- poppler_fontinfo.cpp 17 Apr 2006 18:06:10 -0000 1.3 +++ poppler_fontinfo.cpp 10 Sep 2006 08:17:53 -0000 1.4 @@ -12,11 +12,14 @@ Epdf_Font_Info *fi; fi = (Epdf_Font_Info *)malloc (sizeof (Epdf_Font_Info)); + memset (fi, 0, sizeof (Epdf_Font_Info)); if (!fi) return NULL; - fi->font_name = strdup (font_name); - fi->font_path = strdup (font_path); + if (font_name) + fi->font_name = strdup (font_name); + if (font_path) + fi->font_path = strdup (font_path); fi->is_embedded = is_embedded; fi->is_subset = is_subset; fi->type = type; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs