From f678ff6a2a80df651295701e51cf9f4145e23dc7 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sun, 17 Nov 2013 17:16:56 +0100 Subject: [PATCH 3/3] Read at most 32 bits with Hints:readBits() Reading more then 32 bits with Hints:readBits might give an undefined return value. --- poppler/Hints.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/poppler/Hints.cc b/poppler/Hints.cc index d80f412..2a49c4e 100644 --- a/poppler/Hints.cc +++ b/poppler/Hints.cc @@ -327,7 +327,10 @@ void Hints::readSharedObjectsTable(Stream *str) inputBits = 0; // reset on byte boundary. Not in specs! for (Guint i=0; i