[gs-bugs] [Bug 690723] Using unallocated memory when parsing image...
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Wed Jun 20 17:19:38 UTC 2012
http://bugs.ghostscript.com/show_bug.cgi?id=690723
--- Comment #6 from Shailesh Mistry <shailesh.mistry at hotmail.co.uk> 2012-06-20 17:19:37 UTC ---
The final patch used was
--- a/gs/jbig2dec/jbig2_mmr.c
+++ b/gs/jbig2dec/jbig2_mmr.c
@@ -792,7 +792,7 @@ jbig2_set_bits(byte *line, int x0, int x1)
line[a0] |= lm[b0];
for (a = a0 + 1; a < a1; a++)
line[a] = 0xFF;
- line[a1] |= rm[b1];
+ if (b1) line[a1] |= rm[b1];
}
}
This has been cluster tested and committed as
dc77e931b2a6118092bac21b4dd38bc10d41e644
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list