Commit 308b7ca1 authored by Vincent Le Garrec's avatar Vincent Le Garrec Committed by Albert Astals Cid

Integer-overflow in Gfx8BitFont::Gfx8BitFont

parent b54e1fc3
......@@ -34,6 +34,7 @@
// Copyright (C) 2014 Olly Betts <>
// Copyright (C) 2018 Klarälvdalens Datakonsult AB, a KDAB Group company, <>. Work sponsored by the LiMux project of the city of Munich
// Copyright (C) 2018 Adam Reichold <>
// Copyright (C) 2019 LE GARREC Vincent <>
// 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;
} else {
error(errSyntaxError, -1,
"Wrong type in font encoding resource differences ({0:s})",
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment