Mathieu Malaterre
02734264a1
[trunk] Fix possible code execution vuln
...
Thanks to Huzaifa Sidhpurwala of Red Hat Security Response Team for patch + dataset to reproduce issue.
Technically kdu_expand works fine on the image...
Fixes issue 175
2012-09-12 17:11:17 +00:00
Mathieu Malaterre
c8b8c4cf30
[trunk] no need to export MCT_ELEMENT_SIZE symbol
2012-09-10 12:34:46 +00:00
Mathieu Malaterre
20beb093a1
[trunk] Fix all C90 issues using gcc -pedantic -Wno-long-long to track them
...
As a side effect, fix all comment style to remove extra gcc output
Fixes issue 173
2012-09-10 09:04:47 +00:00
Mickael Savinaud
f16216e270
[trunk] STYLE: Clean up documentation errors
...
Functions should only have formal documentation in one place, and preferably in the declaration (i.e. repeated documentaiton should not be at both the declaration and the definition, because it causes too much maintenance to keep them syncronized). In cases where the definition is also the declaration (as is often the case for static functions in the .c files) the documentation was preserved at the first use of the function signature.
Functions that are formally documented should contain documentation for each function argument.
The clang 3.1 compiler issues documentation warnings when the documentation block with @params preceeding a declaration does not match the argument list. This patch set follows a convention used elsewere in openjpeg to add a placeholder FIXME DOC description where one was previously missing.
Thanks to Hans Johnson.
2012-08-30 16:56:31 +00:00
Mickael Savinaud
3f5b474b16
[trunk] COMP: Remove compiler warning (warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]) thnaks to Hans Johnson
2012-08-30 16:22:40 +00:00
Luc Hermitte
728be68bfe
[trunk] memory leaks on ppm_data, found in tests NR-p1_05.j2k-dump, NR-p1_03.j2k-dump, ETS-C1P1-p1_03.j2k-decode, ETS-C0P1-p1_03.j2k-decode, ETS-C0P1-p1_05.j2k-decode
2012-08-23 19:37:31 +00:00
Luc Hermitte
4e81ea2a8a
[trunk] realloc is misused and may leak memory (Issue#168)
2012-08-22 18:45:31 +00:00
Mickael Savinaud
3dab3be859
remove deprecated v1 style function dwt_encode; rename dwt_encode_v2 to opj_dwt_encode
...
remove deprecated v1 style function dwt_decode; rename dwt_decode_v2 to opj_dwt_decode
remove deprecated v1 style function dwt_getgain; rename dwt_getgain_v2 to opj_dwt_getgain
add opj_dwt_getnorm, opj_dwt_getnorm_real functions
remove deprecated v1 style function dwt_encode_real; rename dwt_encode_real_v2 to opj_dwt_encode_real
remove deprecated v1 style function dwt_getgain_real; rename dwt_getgain_real_v2 to opj_dwt_getgain_real
rename dwt_calc_explicit_stepsizes to opj_dwt_calc_explicit_stepsizes
2012-08-17 08:27:57 +00:00
Mickael Savinaud
d275fc90cf
remove deprecated v1 style function tcd_decode_tile; rename tcd_decode_tile_v2 to opj_tcd_decode_tile
...
remove deprecated v1 style function tcd_free_decode
remove deprecated v1 style function tcd_free_decode_tile
2012-08-16 16:27:59 +00:00
Mickael Savinaud
dbc4c47b15
remove deprecated v1 style function tcd_destroy; rename tcd_destroy_v2 to opj_tcd_destroy
...
rename tcd_init_v2 to opj_tcd_init
remove deprecated v1 style function tcd_malloc_encode
remove deprecated v1 style function tcd_free_encode
remove deprecated v1 style function tcd_init_encode
remove deprecated v1 style function tcd_malloc_decode
remove deprecated v1 style function tcd_malloc_decode_tile
remove deprecated v1 style function tcd_makelayer_fixed; rename tcd_makelayer_fixed_v2 to opj_tcd_makelayer_fixed
remove deprecated v1 style function tcd_rateallocate_fixed; rename tcd_rateallocate_fixed_v2 to opj_tcd_rateallocate_fixed
remove deprecated v1 style function tcd_makelayer; rename tcd_makelayer_v2 to opj_tcd_makelayer
remove deprecated v1 style function tcd_rateallocate; rename tcd_rateallocate_v2 to opj_tcd_rateallocate
remove deprecated v1 style function tcd_encode_tile; rename tcd_encode_tile_v2 to opj_tcd_encode_tile
2012-08-16 16:23:07 +00:00
Mickael Savinaud
e6d97ce928
remove deprecated v1 style function tcd_create; rename tcd_create_v2 to opj_tcd_create
2012-08-16 15:51:55 +00:00
Mickael Savinaud
b7473285ec
rename tcd functions with opj_ prefix
2012-08-16 15:48:20 +00:00
Mickael Savinaud
d1251b2850
correct warnings in j2k.c
2012-08-16 14:29:02 +00:00
Mickael Savinaud
e972589554
remove deprecated v1 style function j2k_write_eoc; rename j2k_write_eoc_v2 to opj_j2k_write_eoc
2012-08-16 14:19:00 +00:00
Mickael Savinaud
0f19c958da
remove deprecated v1 style function j2k_read_eoc; rename j2k_read_eoc_v2 to opj_j2k_read_eoc
2012-08-16 14:16:28 +00:00
Mickael Savinaud
2935fbc089
clean style and remove old v1 style structure in j2k.c
2012-08-16 14:08:58 +00:00
Mickael Savinaud
f47fc4f111
remove deprecated v1 style function j2k_add_mhmarker; rename j2k_add_mhmarker_v2 to opj_j2k_add_mhmarker
...
remove deprecated v1 style function j2k_add_tlmarker; rename j2k_add_tlmarker_v2 to opj_j2k_add_tlmarker
2012-08-16 13:53:23 +00:00
Mickael Savinaud
01c95cb07e
remove deprecated v1 style function j2k_create_compress; rename opj_j2k_create_compress_v2 to opj_j2k_create_compress
2012-08-16 13:46:43 +00:00
Mickael Savinaud
1f94541732
rename j2k functions with opj_ prefix
2012-08-16 13:44:02 +00:00
Mickael Savinaud
ff43b4dca0
remove deprecated v1 style function j2k_setup_encoder; rename opj_j2k_setup_encoder_v2 to opj_j2k_setup_encoder
2012-08-16 13:37:34 +00:00
Mickael Savinaud
5d494e940f
remove deprecated v1 style function j2k_get_num_tp; rename j2k_get_num_tp_v2 to opj_j2k_get_num_tp
2012-08-16 13:34:26 +00:00
Mickael Savinaud
30de580afe
remove deprecated v1 style function j2k_calculate_tp; rename j2k_calculate_tp_v2 to opj_j2k_calculate_tp
2012-08-16 13:31:22 +00:00
Mickael Savinaud
0c13350ea4
rename local j2k function with opj_ prefix
2012-08-16 13:28:52 +00:00
Mickael Savinaud
83a661c360
remove deprecated v1 style function j2k_write_rgn; rename j2k_write_rgn_v2 to opj_j2k_write_rgn
2012-08-16 13:20:16 +00:00
Mickael Savinaud
38ec1325c4
remove deprecated v1 style function j2k_write_sod; rename j2k_write_sod_v2 to opj_j2k_write_sod
2012-08-16 13:16:38 +00:00
Mickael Savinaud
2ca2e83ce5
remove deprecated v1 style function j2k_write_sot; rename j2k_write_sot_v2 to opj_j2k_write_sot
2012-08-16 13:14:00 +00:00
Mickael Savinaud
a9908ba7bd
remove deprecated v1 style function j2k_write_tlm; rename j2k_write_tlm_v2 to opj_j2k_write_tlm
2012-08-16 13:11:26 +00:00
Mickael Savinaud
9f874c00aa
rename local j2k function with opj_ prefix
2012-08-16 13:09:36 +00:00
Mickael Savinaud
b52cdf6a95
rename local j2k function with opj_ prefix
2012-08-16 13:07:36 +00:00
Mickael Savinaud
40e637d9e1
remove deprecated v1 style function j2k_write_poc; rename j2k_write_poc_v2 to opj_j2k_write_poc
...
rename j2k_write_poc_in_memory to opj_j2k_write_poc_in_memory
rename j2k_get_max_poc_size to opj_j2k_get_max_poc_size
2012-08-16 13:03:20 +00:00
Mickael Savinaud
21c76d97bb
remove deprecated v1 style function j2k_write_qcd; rename j2k_write_qcd_v2 to opj_j2k_write_qcd
...
remove deprecated v1 style function j2k_write_qcc; rename j2k_write_qcc_v2 to opj_j2k_write_qcc
remove deprecated v1 style function j2k_write_qcx; rename j2k_write_qcc_in_memory to
rename j2k_get_max_qcc_size to opj_j2k_get_max_qcc_size
2012-08-16 12:58:30 +00:00
Mickael Savinaud
4b3147ede7
rename j2k_get_max_coc_size to opj_j2k_get_max_coc_size
2012-08-16 12:51:46 +00:00
Mickael Savinaud
a037a66ea4
remove deprecated v1 style function j2k_write_cod; rename j2k_write_cod_v2 to opj_j2k_write_cod
...
remove deprecated v1 style function j2k_write_coc; rename j2k_write_coc_v2 to opj_j2k_write_coc
remove deprecated v1 style function j2k_write_cox; rename j2k_write_coc_in_memory to opj_j2k_write_coc_in_memory
2012-08-16 12:47:45 +00:00
Mickael Savinaud
c071819c26
remove deprecated v1 style function j2k_write_com; rename j2k_write_com_v2 to opj_j2k_write_com
2012-08-16 12:38:23 +00:00
Mickael Savinaud
28e018de8a
remove deprecated v1 style function j2k_write_siz; rename j2k_write_siz_v2 to opj_j2k_write_siz
2012-08-16 12:36:05 +00:00
Mickael Savinaud
65102c0ba5
rename j2k_write_soc_v2 to opj_j2k_write_soc
2012-08-16 12:33:43 +00:00
Mickael Savinaud
ff8e97310d
remove deprecated v1 style function j2k_write_soc
2012-08-16 12:32:34 +00:00
Mickael Savinaud
2546661aeb
remove deprecated v1 style functions j2k_destroy_decompress, j2k_decode_jpt_stream, j2k_destroy_compress and j2k_encode
2012-08-16 12:29:59 +00:00
Mickael Savinaud
fdeed49637
rename local j2k function with opj_ prefix
2012-08-16 12:20:46 +00:00
Mickael Savinaud
582323d63c
rename j2k functions with opj_ prefix
2012-08-16 11:51:34 +00:00
Mickael Savinaud
28a0028762
Correct the wrong output management of opj_stream_read_seek function (thanks to EvenR)
2012-08-16 09:13:58 +00:00
Mickael Savinaud
863aacaee3
rename local functions with opj_ prefix in j2k.c (part 2)
2012-08-10 09:27:45 +00:00
Mickael Savinaud
00a2bf7120
rename local functions with opj_ prefix in j2k.c
2012-08-10 09:14:49 +00:00
Mickael Savinaud
6ac5acf765
rename some j2k decoding functions with new prefix opj_
2012-08-10 08:21:31 +00:00
Mickael Savinaud
ce7583f173
rename mct function read/write function with opj_ prefix
2012-08-10 08:07:30 +00:00
Mickael Savinaud
24b10ac585
rename j2k_read_mct to opj_j2k_read_mct, j2k_read_mco to opj_j2k_read_mco, j2k_read_mcc to opj_j2k_read_mcc
2012-08-10 07:58:23 +00:00
Mickael Savinaud
706371e24f
rename j2k_read_cbd to opj_j2k_read_cbd
2012-08-10 07:54:33 +00:00
Mickael Savinaud
5de8639685
rename j2k_read_com_v2 to opj_j2k_read_unk
2012-08-10 07:51:29 +00:00
Mickael Savinaud
d42e26d59c
remove deprecated v1 style function j2k_read_unk
2012-08-10 07:49:52 +00:00
Mickael Savinaud
6ea06e87bb
rename j2k_read_com_v2 to opj_j2k_read_com
2012-08-10 07:44:47 +00:00