mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 19:34:43 +00:00
avcodec/jpeg2000htdec: Avoid freeing uninitialized pointers in ff_jpeg2000_decode_htj2k()
Fixes: freeing of uninitialized pointers Fixes: part of 58299 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Tomas Härdin <git@haerdin.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
207e9f4e50
commit
044ab532fc
@ -1174,8 +1174,8 @@ ff_jpeg2000_decode_htj2k(const Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
/* Temporary buffers */
|
/* Temporary buffers */
|
||||||
int32_t *sample_buf;
|
int32_t *sample_buf = NULL;
|
||||||
uint8_t *block_states;
|
uint8_t *block_states = NULL;
|
||||||
|
|
||||||
int32_t n, val; // Post-processing
|
int32_t n, val; // Post-processing
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user