[poppler] poppler/DCTStream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Oct 22 12:54:11 PDT 2007


 poppler/DCTStream.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 37e16ac301a35ceca2e3535f8c6100d4cf723c82
Author: Albert Astals Cid <tsdgeos at bluebox.localdomain>
Date:   Mon Oct 22 21:54:02 2007 +0200

    exit(1) is bad in library code, use the src.abort method to describe failure

diff --git a/poppler/DCTStream.cc b/poppler/DCTStream.cc
index 14132df..b568ca5 100644
--- a/poppler/DCTStream.cc
+++ b/poppler/DCTStream.cc
@@ -115,7 +115,8 @@ void DCTStream::reset() {
       if (c == -1)
       {
         error(-1, "Could not find start of jpeg data");
-        exit(1);
+        src.abort = true;
+        return;
       }
       if (c != 0xFF) c = 0;
     }


More information about the poppler mailing list