JonBCode / openjpeg

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

minor changes, clean-up #349

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
From 
https://code.google.com/p/sumatrapdf/source/browse/trunk/ext/_patches/openjpeg.p
atch?spec=svn8835&r=8834 :

* Replace magic number 32 in j2k.c@3167 with ABI-change-proof calculation 
|sizeof(l_tcp->pocs) / sizeof(l_tcp->pocs[0])|.

* Replace stdin-spamming printf in t2.c@866 with fprintf(stderr, ...) or remove 
it altogether in t2.c@870.

* Reset l_cblk->data in t2.c@1161 so that it isn't accidentally double-freed 
later on.

* Also, apparently MSVC debug CRT's memory manager asserts even for 
(size_t)-0x100 and the actual maximum allocation size is 0x7ffdefff for 
opj_malloc.h (three times).

Original issue reported on code.google.com by zeniko on 15 May 2014 at 8:59