utils/pdfsig.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d9d9c9f16fbd475aa7653a535f38681d3ccb7899
Author: Albert Astals Cid <[email protected]>
Date:   Sat Mar 2 00:07:29 2019 +0100

    pdfsig: fix use after free
    
    It can happen that destroying the pdf tries to log, which needs
    globalParams, so destroy globalParams last
    
    Fixes issue #733

diff --git a/utils/pdfsig.cc b/utils/pdfsig.cc
index 3a432b36..65514723 100644
--- a/utils/pdfsig.cc
+++ b/utils/pdfsig.cc
@@ -276,9 +276,9 @@ int main(int argc, char *argv[])
   exitCode = 0;
 
 end:
-  delete globalParams;
   delete fileName;
   delete doc;
+  delete globalParams;
 
   return exitCode;
 }
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to