aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2018-10-03 22:15:39 +0200
committerPřemysl Janouch <p@janouch.name>2018-10-03 22:17:05 +0200
commitc77a9c052a8db7493935bd807ed1308aea149473 (patch)
tree0c8a855a8898f62b2baf9a732b5f12e5a038ed28
parent54d86cf25bd1c6de28740940b697d448d75e8add (diff)
downloadpdf-simple-sign-c77a9c052a8db7493935bd807ed1308aea149473.tar.gz
pdf-simple-sign-c77a9c052a8db7493935bd807ed1308aea149473.tar.xz
pdf-simple-sign-c77a9c052a8db7493935bd807ed1308aea149473.zip
Fix parsing of hex strings
-rw-r--r--pdf-simple-sign.cpp1
1 files changed, 1 insertions, 0 deletions
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};
}