[poppler] poppler/Annot.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jul 12 17:48:16 UTC 2021


 poppler/Annot.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit eea6b4f9caa7555009d959de51acb81037b2a465
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Jul 10 23:59:35 2021 +0200

    AnnotAppearanceBuilder::drawListBox: Fix memory leak on error condition
    
    oss-fuzz/35996

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 9f19e22f..e1a05c84 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -4618,6 +4618,9 @@ bool AnnotAppearanceBuilder::drawListBox(const FormFieldChoice *fieldChoice, con
                     }
                     delete daToks;
                 }
+                if (fontToFree) {
+                    fontToFree->decRefCnt();
+                }
                 return false;
             }
             Annot::layoutText(fieldChoice->getChoice(i), &convertedText, &j, font, &w, 0.0, nullptr, false);


More information about the poppler mailing list