diff --git a/pdf.c b/pdf.c
index 112a0d53be2dafe5e3c0328ec987519d77a1616e..0fb055a5c037d5f0e86c5884c8339d228849f0a9 100644
--- a/pdf.c
+++ b/pdf.c
@@ -4978,7 +4978,7 @@ 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 <=0) || (offset >= sz) ) {
+	if (offset > sz) {
 		log_message(5, "VIOLATION[5]: Invalid xref table offset = %ld. Valid range <0, %ld>\n",
 				offset, sz);
 		goto end;