From 6d1df23ef9209063f59ef3115eccac8eb4d9ff11 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Thu, 24 Mar 2016 17:20:26 +0100 Subject: bmp: Fix typo in end of input data check. The rle8 encoding already uses the same comparison --- source/fitz/load-bmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/load-bmp.c') diff --git a/source/fitz/load-bmp.c b/source/fitz/load-bmp.c index 62c76119..4a5887e0 100644 --- a/source/fitz/load-bmp.c +++ b/source/fitz/load-bmp.c @@ -419,7 +419,7 @@ bmp_decompress_rle4(fz_context *ctx, struct info *info, unsigned char *p, unsign ep = dp + height * stride; x = 0; - while (sp + 2 < *end) + while (sp + 2 <= *end) { if (sp[0] == 0 && sp[1] == 0) { /* end of line */ -- cgit v1.2.3