[poppler] poppler/GfxFont.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Feb 2 23:42:14 UTC 2019


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

New commits:
commit 308b7ca12352b741c4f11b4b7685ef71fa66d50a
Author: Vincent Le Garrec <legarrec.vincent at gmail.com>
Date:   Sat Feb 2 04:40:08 2019 +0100

    Integer-overflow in Gfx8BitFont::Gfx8BitFont
    
    oss-fuzz/8715

diff --git a/poppler/GfxFont.cc b/poppler/GfxFont.cc
index cc538f8b..f0c710d9 100644
--- a/poppler/GfxFont.cc
+++ b/poppler/GfxFont.cc
@@ -34,6 +34,7 @@
 // Copyright (C) 2014 Olly Betts <olly at survex.com>
 // Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <info at kdab.com>. Work sponsored by the LiMux project of the city of Munich
 // Copyright (C) 2018 Adam Reichold <adam.reichold at t-online.de>
+// Copyright (C) 2019 LE GARREC Vincent <legarrec.vincent at gmail.com>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -1224,8 +1225,8 @@ Gfx8BitFont::Gfx8BitFont(XRef *xref, const char *tagA, Ref idA, GooString *nameA
 	    }
 	    enc[code] = copyString(obj3.getName());
 	    encFree[code] = true;
+	    ++code;
 	  }
-	  ++code;
 	} else {
 	  error(errSyntaxError, -1,
 		"Wrong type in font encoding resource differences ({0:s})",


More information about the poppler mailing list