opencv/3rdparty/openjpeg/openjp2
Alex a2fc479c0b
Fix Heap-buffer-overflow READ in opj_jp2_apply_pclr
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47342

The read overflow triggered by reading `src[j]` in
```cpp
            for (j = 0; j < max; ++j) {
                dst[j] = src[j];
            }
```
The max is calculated as `new_comps[pcol].w * new_comps[pcol].h`, however the `src = old_comps[cmp].data;` which may have different `w` and `h` dimensions.
2022-12-30 15:43:41 +00:00
..
bio.c
bio.h
cio.c
cio.h
CMakeLists.txt Disabled compiling warnings in case of symbols in cmake for 4.x 2022-09-20 13:35:48 +03:00
dwt.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
dwt.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
event.c
event.h
function_list.c
function_list.h
image.c
image.h
invert.c
invert.h
j2k.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
j2k.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
jp2.c Fix Heap-buffer-overflow READ in opj_jp2_apply_pclr 2022-12-30 15:43:41 +00:00
jp2.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
mct.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
mct.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
mqc_inl.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
mqc.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
mqc.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
openjpeg.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
openjpeg.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
opj_clock.c
opj_clock.h
opj_codec.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
opj_common.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
opj_config_private.h.cmake.in
opj_config.h.cmake.in
opj_includes.h
opj_intmath.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
opj_inttypes.h
opj_malloc.c
opj_malloc.h
opj_stdint.h
pi.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
pi.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
sparse_array.c
sparse_array.h
t1_luts.h
t1.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
t1.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
t2.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
t2.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
tcd.c 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
tcd.h 3rdparty: update openjpeg 2.3.1 => 2.4.0 2021-03-01 23:56:13 +00:00
tgt.c
tgt.h
thread.c
thread.h
tls_keys.h