From c77a9c052a8db7493935bd807ed1308aea149473 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Wed, 3 Oct 2018 22:15:39 +0200 Subject: Fix parsing of hex strings --- pdf-simple-sign.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pdf-simple-sign.cpp b/pdf-simple-sign.cpp index 1755dc9..89b29a4 100644 --- a/pdf-simple-sign.cpp +++ b/pdf-simple-sign.cpp @@ -161,6 +161,7 @@ struct pdf_lexer { buf.clear(); } } + p++; if (!buf.empty()) value += char(std::stoi(buf + '0', nullptr, 16)); return {pdf_object::STRING, value}; } -- cgit v1.2.3-70-g09d2