Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : proto

Dir     : e17/proto/epdf/src/lib


Modified Files:
        etk_pdf.c ewl_pdf.c 


Log Message:
fix seg fault with pdf with broken index (page number can be < 1)

===================================================================
RCS file: /cvs/e/e17/proto/epdf/src/lib/etk_pdf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- etk_pdf.c   7 Jul 2007 16:12:09 -0000       1.7
+++ etk_pdf.c   14 Jul 2007 14:47:11 -0000      1.8
@@ -126,6 +126,7 @@
 {
    if (!pdf ||
        !pdf->pdf_document ||
+       (page < 1) ||
        (page >= epdf_document_page_count_get (pdf->pdf_document)) ||
        (page == pdf->page))
       return;
===================================================================
RCS file: /cvs/e/e17/proto/epdf/src/lib/ewl_pdf.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- ewl_pdf.c   12 Feb 2007 14:02:40 -0000      1.9
+++ ewl_pdf.c   14 Jul 2007 14:47:11 -0000      1.10
@@ -188,6 +188,7 @@
        DCHECK_TYPE("pdf", pdf, EWL_PDF_TYPE);
 
        if (!pdf->pdf_document ||
+           (page < 1) ||
            (page >= epdf_document_page_count_get (pdf->pdf_document)) ||
            (page == pdf->page))
                 DLEAVE_FUNCTION(DLEVEL_STABLE);



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to