commit 22104c21d0308e912d0b59ed26db44613080e59f
parent 282992945637c691fa0b04a4680618a435cc7348
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 30 Jun 2026 18:42:19 +0200
fix incorrect bounds check
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/plugins/dvi_extractor.c b/src/plugins/dvi_extractor.c
@@ -313,7 +313,7 @@ EXTRACTOR_dvi_extract_method (struct EXTRACTOR_ExtractContext *ec)
break;
case 242: /* zzz4, hurray! */
len = getIntAt (&data[pos + 1]);
- if ( (pos + 1 + len < size) &&
+ if ( (pos + 5 + len < size) &&
(0 != parseZZZ ((const char *) data, pos + 5, len, ec->proc,
ec->cls)) )
goto CLEANUP;