[poppler] utils/pdfsig.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Mar 1 23:40:59 UTC 2019


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

New commits:
commit d9d9c9f16fbd475aa7653a535f38681d3ccb7899
Author: Albert Astals Cid <aacid at kde.org>
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;
 }


More information about the poppler mailing list