[Bug 635373] New: jasper Assertion failed: dec->numcomps == 3
https://bugzilla.novell.com/show_bug.cgi?id=635373 https://bugzilla.novell.com/show_bug.cgi?id=635373#c0 Summary: jasper Assertion failed: dec->numcomps == 3 Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andre.cbarros@yahoo.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100723 SUSE/3.6.8-0.1.1 Firefox/3.6.8 Well, it affects ImageMagicks and libicns when trying to convert some kind of images (in my case, .icns ones). A fix already exist, and should be applied. Fedora uses the following: ------------------------------------------------------------------ diff -urN jasper-1.900.1/src/libjasper/jpc/jpc_dec.c jasper-1.900.1-fix/src/libjasper/jpc/jpc_dec.c --- jasper-1.900.1/src/libjasper/jpc/jpc_dec.c 2007-01-19 14:43:07.000000000 -0700 +++ jasper-1.900.1-fix/src/libjasper/jpc/jpc_dec.c 2008-03-06 16:51:12.000000000 -0700 @@ -1069,12 +1069,12 @@ /* Apply an inverse intercomponent transform if necessary. */ switch (tile->cp->mctid) { case JPC_MCT_RCT: - assert(dec->numcomps == 3); + assert(dec->numcomps >= 3); jpc_irct(tile->tcomps[0].data, tile->tcomps[1].data, tile->tcomps[2].data); break; case JPC_MCT_ICT: - assert(dec->numcomps == 3); + assert(dec->numcomps >= 3); jpc_iict(tile->tcomps[0].data, tile->tcomps[1].data, tile->tcomps[2].data); break; --------------------------------------------------------------------------- Debian is slightly different, changing the offending line with: + assert(dec->numcomps == 3 || dec->numcomps == 4); After applying the patches, both convert tools seems to work fine, ImageMagick's convert and libicns's icns2png. Regards, André PS.: libicns needs a little patch to be build against libpng >= 1.4.x since it uses a function that was deprecated. Reproducible: Always Steps to Reproduce: 1. Try to convert big icns files, it will not convert the big ones (>= 256x256) 2. 3. Actual Results: Fail on big icns convertion. Expected Results: Should convert fine. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=635373
https://bugzilla.novell.com/show_bug.cgi?id=635373#c
wei wang
participants (1)
-
bugzilla_noreply@novell.com