commit 550c070d23ab6702b3961e54b5d19bc6aad33e04 from: Sven M. Hallberg date: Thu Mar 30 13:27:46 2023 UTC 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. commit - 431c7db3b7ea3e2db9cc7066cb5334e4bb7dcb75 commit + 550c070d23ab6702b3961e54b5d19bc6aad33e04 blob - 0fb055a5c037d5f0e86c5884c8339d228849f0a9 blob + 97b2bb0f10f9d97613479336e3f5212ab2c59ce0 --- pdf.c +++ pdf.c @@ -4979,8 +4979,8 @@ parse_xrefs(const uint8_t *input, size_t sz, size_t *n // 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; }