On Tue, Mar 27, 2007 at 11:08:20AM -0700, [EMAIL PROTECTED] wrote:
> It's quite a Heisenbug, disappearing when you put any
> malloc in besides vanilla libc; I tried electric fence
> and dmalloc, I understand valgrind is the same.

I don't know what went wrong the first time, I tried
again and Electric Fence found it.  Please test.
"It works for me" on both broken2.jp2 and broken4.jp2.

diff -ur jasper-1.701.0/src/libjasper/jpc/jpc_dec.c 
jasper-1.701.0.new/src/libjasper/jpc/jpc_dec.c
--- jasper-1.701.0/src/libjasper/jpc/jpc_dec.c  2004-02-08 17:34:40.000000000 
-0800
+++ jasper-1.701.0.new/src/libjasper/jpc/jpc_dec.c      2007-03-27 
14:49:47.000000000 -0700
@@ -1706,6 +1706,7 @@
 
        if ((flags & JPC_QCC) || !(ccp->flags & JPC_QCC)) {
                ccp->flags |= flags | JPC_QSET;
+               assert (compparms->numstepsizes <= 3 * JPC_MAXRLVLS + 1);
                for (bandno = 0; bandno < compparms->numstepsizes; ++bandno) {
                        ccp->stepsizes[bandno] = compparms->stepsizes[bandno];
                }


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to