diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-03-24 17:20:26 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-03-29 13:06:27 +0100 |
commit | 6d1df23ef9209063f59ef3115eccac8eb4d9ff11 (patch) | |
tree | 77261ee0a59d2106437d6ca9da29d54a5e8f7e4e /source/fitz | |
parent | 6f4f108699279e922211ae73cd6697f158183775 (diff) | |
download | mupdf-6d1df23ef9209063f59ef3115eccac8eb4d9ff11.tar.xz |
bmp: Fix typo in end of input data check.
The rle8 encoding already uses the same comparison
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/load-bmp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |