pdmark / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Heap corruption in j2k encoder #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(OpenJPEG 1.3, Vista Business)

On some gray16 images (conceivably which have too many different colors)
j2k encoder crashes while freeing memory in tcd_free_encode(opj_tcd_t *tcd)
on this string:
   opj_free(prc->cblks.enc[cblkno].data - 2);

dbgheap.c
> image_to_j2k.exe!_CrtIsValidHeapPointer(const void *
pUserData=0x01069f20)

Version 1.2 didn't crash on such images, but i tested it less than 1.3,
since i need lossless j2k.

Steps to reproduce: try to encode attached file (random.tif) with
image_to_j2k.exe

Original issue reported on code.google.com by go_go_jo...@mail.ru on 31 Jul 2009 at 3:14

Attachments:

GoogleCodeExporter commented 9 years ago
Indeed, the memory allocated for prc->cblks.enc[cblkno].data is too small for 
16 bit 
depth components. I'm working on this one.

Original comment by fodev...@gmail.com on 8 Apr 2010 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 10 Feb 2012 at 10:34

GoogleCodeExporter commented 9 years ago
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=672455

Original comment by mathieu.malaterre on 11 May 2012 at 8:14

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r1703.

Update issue 62

Original comment by mathieu.malaterre on 29 May 2012 at 5:21

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 24 Feb 2014 at 5:11

GoogleCodeExporter commented 9 years ago
Closing this one. Please follow issue 259 instead

Original comment by mathieu.malaterre on 25 Feb 2014 at 12:40

GoogleCodeExporter commented 9 years ago

Original comment by mathieu.malaterre on 7 Mar 2014 at 3:11