[1.5] Add CHANGES file
[openjpeg.git] / CHANGES
1 2012-09-10  Mathieu Malaterre
2
3         * [r1920] NEWS: [1.5] update NEWS file
4         * [r1919] libopenjpeg/j2k.c: [1.5] Fix Heap-based buffer-overflow
5           when decoding openjpeg image
6           
7           Thanks to Huzaifa Sidhpurwala of Red Hat Security Response Team
8           for dataset to reproduce the issue.
9           Fixes issue 170
10         * [r1917] libopenjpeg/event.c: [1.5] Fix issue with str_length not
11           being used. Rewrite code to prefer use of vsnprintf to prevent
12           potential buffer overflow.
13         * [r1914] libopenjpeg/jpwl/crc.c, libopenjpeg/jpwl/jpwl_lib.c:
14           [1.5] remove extra trailing semicolon
15
16 2012-08-24  Mathieu Malaterre
17
18         * [r1899] applications/codec/j2k_dump.c,
19           applications/jpip/libopenjpip/byte_manager.c,
20           libopenjpeg/jpwl/jpwl_lib.c, libopenjpeg/tcd.c: [1.5] COMP: Fix
21           warnings identified by clang31
22           
23           openjpeg/libopenjpeg/tcd.c:1884 col 48: warning: comparison of
24           unsigned expressi
25           on < 0 is always false
26           
27           openjpeg/applications/codec/j2k_dump.c:362 col 29: warning:
28           equality comparison
29           with extraneous parentheses
30           
31           openjpeg/libopenjpeg/jpwl/jpwl_lib.c:680:19: warning: format
32           specifies type 'int
33           ' but the argument has type 'long long' [-Wformat]
34           printf("Marker@%d: %X\n", cio_tell(cio) - 2, id);
35           ~^ ~~~~~~~~~~~~~~~~~
36           %lld
37           
38           openjpeg/applications/jpip/libopenjpip/byte_manager.c:58:63:
39           warning: format spe
40           cifies type 'long' but the argument has type 'OPJ_OFF_T' (aka
41           'long long') [-Wfo
42           rmat]
43           fprintf( FCGI_stderr, "Error: error in fetch_bytes( %d, %ld,
44           %lu)\n", fd, offset
45           , size);
46           
47           Author: Hans Johnson <hans-johnson@uiowa.edu>
48
49 2012-07-29  Mathieu Malaterre
50
51         * [r1736] applications/jpip/libopenjpip/sock_manager.c: [1.5]
52           Import portion of patch from Alex Zimnitsky to fix compilation on
53           FreeBSD
54
55 2012-07-11  Mathieu Malaterre
56
57         * [r1733] libopenjpeg/cio.c, libopenjpeg/cio.h: [1.5] Fix
58           compilation issue with Compiler Borland C++ v. 5.5
59           
60           Fixes issue 154
61         * [r1732] libopenjpeg/j2k.c: [1.5] Fix r1727 (Issue 156) to compile
62           on compilers where false is not defined.
63         * [r1729] libopenjpeg/j2k.c, libopenjpeg/tcd.c: [1.5] This fixes
64           issues seen on PDF files
65           
66           Fixes issue 156
67
68 2012-07-10  Mathieu Malaterre
69
70         * [r1727] libopenjpeg/j2k.c: [1.5] Fix heap buffer overflow
71           
72           Enforce sanity checks on tile number and tile length, even when
73           the (rather
74           broken) USE_JPWL code isn't enabled.
75
76 2012-05-29  Mathieu Malaterre
77
78         * [r1705] libopenjpeg/jp2.c: [1.5] jp2_read_boxhdr() call ignores
79           return value
80           Fixes issue 91
81         * [r1704] applications/mj2/frames_to_mj2.c, applications/mj2/mj2.c,
82           applications/mj2/mj2_convert.c: [1.5] Make sure openjpeg/mj2 can
83           be compiled with gcc -std=c89
84         * [r1703] libopenjpeg/tcd.c: [1.5] This commit hides symptoms of
85           CVE-2009-5030
86           
87           As explained in issue 5, comment 1. This is an easy fix to avoid
88           memory overrun.
89           Update issue 5
90           Update issue 62
91         * [r1702] libopenjpeg/j2k.c,
92           tests/nonregression/test_suite.ctest.in: [1.5] Applying old patch
93           from r1642, with further modification from winfried. Also enable
94           failing test. Everything seems to be working well now.
95           Fixes issue 150
96         * [r1701] libopenjpeg/tcd.c: [1.5] Import r1669 from trunk over to
97           1.5 branch
98         * [r1700] libopenjpeg/j2k.c, libopenjpeg/t1.c, libopenjpeg/t2.c,
99           libopenjpeg/tcd.c: [1.5] Apply private patch from Alex Macfarlane
100           Smith
101           This gets rids of a lot memory leaks when used on device with low
102           memory
103         * [r1696] applications/codec/convert.c, libopenjpeg/jp2.c: [1.5]
104           The two files in Issue145 have a precision < 8-bit:
105           therefore 'jp2_read_pclr' must be changed.
106           
107           j2k_to_image fails to create RGB/RGBA images with a
108           precision < 8-bit: therefore 'imagetopng' must be
109           changed.
110           Update issue 145
111         * [r1694] libopenjpeg-jpwl.pc.in, libopenjpeg/Makefile.am: [1.5]
112           Fix autotools installation. Thanks to winfried for patch.
113           Update issue 149
114         * [r1693] libopenjpeg/opj_malloc.h: [1.5] Fix compilation on
115           FreeBSD. Thanks to rafael carre (funman@videolan.org) for patch.
116           
117           Fixes issue 111
118
119 2012-05-21  Mathieu Malaterre
120
121         * [r1686] libopenjpeg/opj_malloc.h: [1.5] Build fails on AIX
122           
123           Fixes issue 139
124         * [r1683] doc/man/man1/image_to_j2k.1, doc/man/man1/j2k_to_image.1,
125           doc/man/man3/libopenjpeg.3: [1.5] Man page syntax fixes. Thanks
126           to vskytta for patch.
127           
128           Fixes issue 147
129         * [r1682] libopenjpeg/tcd.c: [1.5] fix compilation warning about
130           lrintf being implicit.
131           
132           Fixes issue 144
133
134 2012-04-23  Mathieu Malaterre
135
136         * [r1649] libopenjpeg/j2k.c: [1.5] Revert r1642, as explained on
137           https://groups.google.com/group/openjpeg/msg/77a67fef94a0309b
138         * [r1648] tests/nonregression/test_suite.ctest.in: [1.5] Adding
139           test suite for file409752.jp2
140         * [r1647] CMakeLists.txt: [1.5] Make it easier to find /data from
141           within 1.5 sub-branch
142         * [r1643] applications/JavaOpenJPEG/JavaOpenJPEG.c,
143           applications/JavaOpenJPEG/JavaOpenJPEGDecoder.c,
144           applications/codec/convert.c: [1.5] Integrate patch from winfried
145           posted on the mailing list. See here for more info:
146           https://groups.google.com/group/openjpeg/msg/6488859a0dce77
147         * [r1642] libopenjpeg/j2k.c: [1.5] Integrate patch from winfried
148           posted on the mailing list. See here for more info:
149           https://groups.google.com/group/openjpeg/msg/1bbf7ae7ddee3a51
150         * [r1640] applications/mj2/extract_j2k_from_mj2.c,
151           applications/mj2/frames_to_mj2.c, applications/mj2/mj2.h,
152           applications/mj2/mj2_to_frames.c,
153           applications/mj2/wrap_j2k_in_mj2.c, libopenjpeg/openjpeg.h: [1.5]
154           Integrate patch from winfried posted on the mailing list. See
155           here for more info:
156           https://groups.google.com/group/openjpeg/msg/7e30b6e288ad5908
157
158 2012-04-20  Mathieu Malaterre
159
160         * [r1637] applications/jpip/util/CMakeLists.txt,
161           applications/jpip/util/addXMLinJP2.c: [1.5] Need to
162           compile/install tool to embed XML file in JP2 for jpip server
163
164 2012-04-19  Mathieu Malaterre
165
166         * [r1636] applications/JavaOpenJPEG/CMakeLists.txt,
167           applications/jpip/util/CMakeLists.txt: [1.5] jar files are arch
168           independant. We can install them safely in share
169         * [r1635] applications/jpip/util/CMakeLists.txt: [1.5] Add install
170           rules for openjpip client
171         * [r1634] applications/JavaOpenJPEG/CMakeLists.txt: [1.5] Add
172           missing symbols from getopt into the java glue lib
173         * [r1633] applications/JavaOpenJPEG/CMakeLists.txt: [1.5] resolve
174           missing symbols from convert.c/index.c
175         * [r1632] applications/JavaOpenJPEG/CMakeLists.txt: [1.5] Add
176           explicit linking from glue java lib to real openjpeg lib
177         * [r1631] applications/JavaOpenJPEG/CMakeLists.txt: [1.5] install
178           java module
179         * [r1630] CMake/OpenJPEGConfig.cmake.in, CMakeLists.txt: [1.5] Fix
180           computation of relative path from include/ to lib/
181
182 2012-04-18  Mathieu Malaterre
183
184         * [r1629] CMakeLists.txt, libopenjpeg/jpwl/CMakeLists.txt,
185           tests/unit/testempty1.c, tests/unit/testempty2.c: [1.5] fix
186           compilation warnings on windows box
187
188 2012-04-16  Mathieu Malaterre
189
190         * [r1628] libopenjpeg/jpwl/CMakeLists.txt: [1.5] debian tools
191           detected a missing link to math lib
192
193 2012-04-06  Mathieu Malaterre
194
195         * [r1626] tests/CMakeLists.txt, tests/unit,
196           tests/unit/CMakeLists.txt, tests/unit/testempty1.c,
197           tests/unit/testempty2.c: [1.5] Adding some simple unit tests
198
199 2012-04-05  Mathieu Malaterre
200
201         * [r1625] CMakeLists.txt: [1.5] introduce fix for the SOVERSION
202           regression introduced in 1.5.0
203
204 2012-03-16  Mathieu Malaterre
205
206         * [r1571] applications/jpip/libopenjpip/j2kheader_manager.c,
207           applications/jpip/libopenjpip/query_parser.c: [1.5] Remove a
208           simple warning report
209         * [r1570] applications/jpip/libopenjpip/query_parser.c: [1.5] I
210           think == was meant here.
211
212 2012-03-02  Mathieu Malaterre
213
214         * [r1534] applications/jpip/libopenjpip/channel_manager.c: [1.5]
215           Remove a warning about undefined snprintf on windows compiler.
216         * [r1533] applications/jpip/libopenjpip/auxtrans_manager.c,
217           applications/jpip/libopenjpip/byte_manager.h,
218           applications/jpip/libopenjpip/channel_manager.c,
219           applications/jpip/libopenjpip/channel_manager.h,
220           applications/jpip/libopenjpip/codestream_manager.c,
221           applications/jpip/libopenjpip/j2kheader_manager.c,
222           applications/jpip/libopenjpip/jp2k_decoder.c,
223           applications/jpip/libopenjpip/manfbox_manager.c,
224           applications/jpip/libopenjpip/marker_manager.c,
225           applications/jpip/libopenjpip/mhixbox_manager.c,
226           applications/jpip/libopenjpip/session_manager.c,
227           applications/jpip/libopenjpip/session_manager.h: [1.5] Change the
228           logic in byte_manager.h. Prefer the use of stdint.h when
229           available. Default to compiler specific mecanism otherwise.
230           Remove some c++ comments. Fix signed vs unsigned comparison
231         * [r1527] doc/CMakeLists.txt, doc/Doxyfile.dox.cmake.in: [1.5]
232           Finish import of r963
233         * [r1526] ., doc/Doxyfile.dox, doc/Doxyfile.dox.cmake.in,
234           doc/mainpage.dox.cmake[CPY]: [1.5] merge r963 from trunk over to
235           branch 1.5
236         * [r1524] tests/nonregression/test_suite.ctest.in: [1.5] Convert
237           from DOS eol to UNIX eol
238         * [r1517] libopenjpeg/jpwl/README.txt, libopenjpeg/jpwl/crc.c,
239           libopenjpeg/jpwl/jpwl.c: [1.5] Set from DOS eol to UNIX eol
240         * [r1510] libopenjpeg/cidx_manager.c: [1.5] Sync with trunk and
241           remove uneeded include headers
242         * [r1506] applications/mj2/extract_j2k_from_mj2.c,
243           applications/mj2/frames_to_mj2.c, applications/mj2/mj2.c: [1.5]
244           Import rev 1053 from trunk over to 1.5
245         * [r1504] applications/codec/j2k_dump.c: [1.5] Fix typo in date.
246         * [r1496] applications/jpip/libopenjpip/comMakefile.mk[DEL]: [1.5]
247           Sync with trunk. Remove remainings bits of old Makefile based
248           build system
249         * [r1492] applications/codec/index.c, applications/codec/index.h,
250           applications/codec/windirent.h: [1.5] Convert from DOS eol to
251           UNIX eol
252         * [r1488] applications/OPJViewer/CMakeLists.txt,
253           applications/OPJViewer/OPJViewer.iss,
254           applications/OPJViewer/Readme.txt,
255           applications/OPJViewer/about/about.htm,
256           applications/OPJViewer/source/OPJAbout.cpp,
257           applications/OPJViewer/source/OPJChild16.xpm,
258           applications/OPJViewer/source/OPJDialogs.cpp,
259           applications/OPJViewer/source/OPJThreads.cpp,
260           applications/OPJViewer/source/OPJViewer.cpp,
261           applications/OPJViewer/source/OPJViewer.h,
262           applications/OPJViewer/source/OPJViewer.rc,
263           applications/OPJViewer/source/OPJViewer16.xpm,
264           applications/OPJViewer/source/about_htm.h,
265           applications/OPJViewer/source/build.h,
266           applications/OPJViewer/source/imagjpeg2000.cpp,
267           applications/OPJViewer/source/imagjpeg2000.h,
268           applications/OPJViewer/source/imagmxf.cpp,
269           applications/OPJViewer/source/imagmxf.h,
270           applications/OPJViewer/source/license.txt,
271           applications/OPJViewer/source/readmeafter.txt,
272           applications/OPJViewer/source/readmebefore.txt,
273           applications/OPJViewer/source/wxj2kparser.cpp,
274           applications/OPJViewer/source/wxjp2parser.cpp: [1.5] Use UNIX eol
275           for source code
276         * [r1486] INSTALL: [1.5] Sync with trunk.
277         * [r1482] CMakeLists.txt: [1.5] As discussed on the mailing list.
278           OpenJPEG should be compatible with Multi-Arch distros. Thanks to
279           Rex for report
280         * [r1481] applications/jpip/libopenjpip/box_manager.c,
281           applications/jpip/libopenjpip/box_manager.h,
282           applications/jpip/libopenjpip/boxheader_manager.c,
283           applications/jpip/libopenjpip/byte_manager.h,
284           applications/jpip/libopenjpip/cachemodel_manager.c,
285           applications/jpip/libopenjpip/cachemodel_manager.h,
286           applications/jpip/libopenjpip/imgreg_manager.c,
287           applications/jpip/libopenjpip/imgreg_manager.h,
288           applications/jpip/libopenjpip/jp2k_encoder.c,
289           applications/jpip/libopenjpip/jpip_parser.c,
290           applications/jpip/libopenjpip/manfbox_manager.c,
291           applications/jpip/libopenjpip/manfbox_manager.h,
292           applications/jpip/libopenjpip/metadata_manager.c,
293           applications/jpip/libopenjpip/metadata_manager.h,
294           applications/jpip/libopenjpip/placeholder_manager.c,
295           applications/jpip/libopenjpip/placeholder_manager.h,
296           applications/jpip/libopenjpip/target_manager.c,
297           applications/jpip/libopenjpip/target_manager.h,
298           applications/jpip/util/jpip_to_j2k.c,
299           applications/jpip/util/opj_server.c: [1.5] Fix a bunch of
300           comparison between signed and unsigned integer expressions. Some
301           are still left to decide.
302
303 2012-03-01  Mathieu Malaterre
304
305         * [r1480] applications/jpip/libopenjpip/openjpip.c: [1.5] Fix rev
306           1474, typo in the spelling.
307         * [r1479] libopenjpeg/jpwl/jpwl.c: [1.5] Fix a warning about
308           comparison of ulong >= 0. Thanks to winfried for report.
309         * [r1475] applications/codec/convert.c: [1.5] Apply big-endian
310           patch from winfried: libopenjpeg and WORDS_BIGENDIAN, 2012/02/14
311         * [r1474] applications/jpip/libopenjpip/openjpip.c: Fix a warning
312           reported on the continuous dashboard for linux.
313         * [r1473] applications/codec/convert.c: [1.5] j2k_to_image does not
314           support writing image with precision less than 8bits. Simply give
315           up for now. Thanks to winfried for report. Also add static
316           keyword for undeclared function in convert.h
317         * [r1472] applications/jpip/libopenjpip/jpipstream_manager.c,
318           applications/jpip/libopenjpip/jpipstream_manager.h: [1.5] Fix a
319           warning about conversion from const char* to char*
320         * [r1471] CMakeLists.txt: [1.5] cmake recommends the use of
321           fullpath. Thanks to winfried for report.
322         * [r1468] libopenjpeg/jpwl/CMakeLists.txt: [1.5] Fix JPWL's DLL
323           installation. Thanks to winfried for report.
324
325 2012-02-29  Kaori Hagihara
326
327         * [r1467] applications/jpip/README: [1.5][JPIP] README modification
328           regarding the JP2 encoding
329
330 2012-02-28  Rex Dieter
331
332         * [r1464] CMakeLists.txt, libopenjpeg/CMakeLists.txt,
333           libopenjpeg1.pc.cmake: allow finer-grain control of header
334           location via OPENJPEG_INSTALL_INCLUDE_DIR
335         * [r1463] CMakeLists.txt, libopenjpeg1.pc.cmake: fix assumptions
336           that OPENJPEG_INSTALL_*_DIR aren't relative paths
337
338 2012-02-28  Kaori Hagihara
339
340         * [r1462] applications/jpip/CHANGES,
341           applications/jpip/libopenjpip/comMakefile.mk,
342           applications/jpip/libopenjpip/jpip_parser.c,
343           applications/jpip/libopenjpip/metadata_manager.c,
344           applications/jpip/libopenjpip/openjpip.c,
345           applications/jpip/libopenjpip/query_parser.c,
346           applications/jpip/util/opj_server.c: [1.5][JPIP] enabled the
347           opj_server to reply the first query consisting with len request
348           from kakadu client
349
350 2012-02-23  Rex Dieter
351
352         * [r1460] libopenjpeg1.pc.cmake, libopenjpeg1.pc.in: fix pkgconfig
353           to include -I/usr/include/openjpeg-1.5 in cflags (issue #118)
354
355 2012-02-17  Mathieu Malaterre
356
357         * [r1444] applications/jpip/util/CMakeLists.txt: [1.5] allow
358           mecanism to provide JFLAGS
359
360 2012-02-16  Mathieu Malaterre
361
362         * [r1437] CMakeLists.txt: only install CHANGES when present
363         * [r1436] applications/jpip/util/opj_dec_server.c: remove a warning
364           about unused variable
365
366 2012-02-14  Mathieu Malaterre
367
368         * [r1435] CMake/CTestCustom.cmake.in: Hide some warnings generated
369           by 3rd party libs
370         * [r1434] applications/jpip/util/opj_dec_server.c: Make the code
371           C90 compliant for VS2010
372         * [r1433] applications/jpip/util/CMakeLists.txt: Work around issue
373           with FindJava module
374
375 2012-02-13  Mathieu Malaterre
376
377         * [r1429] applications/jpip/libopenjpip/sock_manager.c: Use C style
378           comment.
379         * [r1424] applications/jpip/libopenjpip/sock_manager.c: [1.5] Need
380           to include unistd for close() declaration
381         * [r1423] applications/jpip/util/CMakeLists.txt: By default,
382           openjpip client can still built even without java compiler. Print
383           a message to the user as warning.
384         * [r1422] applications/jpip/CMakeLists.txt: [1.5] Fix typo in
385           CMAKE_USE_PTHREADS vs CMAKE_USE_PTHREADS_INIT
386         * [r1420] CMake/FindFCGI.cmake: [1.5] Backport diff from trunk
387         * [r1419] CMake/FindPTHREAD.cmake[DEL],
388           applications/jpip/CMakeLists.txt,
389           applications/jpip/libopenjpip/CMakeLists.txt: [1.5] Remove use of
390           custom PTHREAD module. Prefer cmake's one.
391
392 2012-02-10  Kaori Hagihara
393
394         * [r1405] applications/jpip/CHANGES, applications/jpip/README,
395           applications/jpip/util/opj_dec_server.c,
396           applications/jpip/util/opj_viewer/src/ImageManager.java,
397           applications/jpip/util/opj_viewer/src/ImageWindow.java,
398           applications/jpip/util/opj_viewer/src/ImgdecClient.java,
399           applications/jpip/util/opj_viewer_xerces/src/ImageWindow.java:
400           [1.5][JPIP] added execution argument to set port number for
401           opj_dec_server, opj_viewer*
402         * [r1404] applications/jpip/CHANGES,
403           applications/jpip/doc/Doxyfile: [1.5][JPIP] fixed Doxygen
404           configuration file to document the utilities
405
406 2012-02-10  Antonin Descampe
407
408         * [r1403] CMakeLists.txt, libopenjpeg/CMakeLists.txt: [1.5] revert
409           r1399 and r1400
410         * [r1402] doc/Makefile.am: [1.5] fixed an error in autotools that
411           prevented the build because no CHANGES file anymore
412
413 2012-02-10  Rex Dieter
414
415         * [r1401] CMake/OpenJPEGConfig.cmake.in: make OpenJPEGConfig.cmake
416           provide useful (non-empty) values
417         * [r1400] libopenjpeg/CMakeLists.txt: make openjpeg.h header
418           symlink to match autotools
419         * [r1399] CMakeLists.txt: install cmake/pkgconfig bits in LIB_DIR
420
421 2012-02-07  Antonin Descampe
422
423         * [r1391] CMake/OpenJPEGCPack.cmake: update OpenJPEGCPack.cmake
424           with correct package names
425