ref: 76c000e507efff47e6f625bddef0a93323a7cc9d
parent: 9cf138eae6a1ac6554ecc3414224fecb0ba2ec2b
author: Shailesh Mistry <shailesh.mistry@hotmail.co.uk>
date: Wed Jun 20 14:18:02 EDT 2012
Bug 690723 : Prevent over writing unallocated memory when parsing an image
--- a/jbig2_mmr.c
+++ b/jbig2_mmr.c
@@ -790,7 +790,7 @@
line[a0] |= lm[b0];
for (a = a0 + 1; a < a1; a++)
line[a] = 0xFF;
- line[a1] |= rm[b1];
+ if (b1) line[a1] |= rm[b1];
}
}