From 550c070d23ab6702b3961e54b5d19bc6aad33e04 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" <pesco@khjk.org> Date: Thu, 30 Mar 2023 13:27:46 +0000 Subject: [PATCH] adjust error message The correct and standard format specifier for values of type size_t is %zu. There is no need to point out the valid bounds. Match style with the other messages. --- pdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf.c b/pdf.c index 0fb055a..97b2bb0 100644 --- a/pdf.c +++ b/pdf.c @@ -4979,8 +4979,8 @@ parse_xrefs(const uint8_t *input, size_t sz, size_t *nxrefs) // verify the offset recovered is bounded to be in the file // XXX this check is already present below by virtue of h_seek() if (offset > sz) { - log_message(5, "VIOLATION[5]: Invalid xref table offset = %ld. Valid range <0, %ld>\n", - offset, sz); + log_message(5, "VIOLATION[5]: startxref %zu (%#zx) out of bounds\n", + offset, offset); goto end; } -- GitLab