History

avcodec/jpeg2000htdec: Avoid freeing uninitialized pointers in ff_jpeg2000_decode_htj2k()

Fixes: freeing of uninitialized pointers Fixes: part of 58299

Michael Niedermayer committed 3 years ago

Commit 044ab531 parent 207e9f41 file · +2 −2Browse files

Unified · Split

libavcodec/jpeg2000htdec.c+2−2
@@ -1174,8 +1174,8 @@ ff_jpeg2000_decode_htj2k(const Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c · 1173 unmodified lines
11741174 int ret;
11751175
11761176 /* Temporary buffers */
1177− int32_t *sample_buf;
1178− uint8_t *block_states;
1177+ int32_t *sample_buf = NULL;
1178+ uint8_t *block_states = NULL;
11791179
11801180 int32_t n, val; // Post-processing
11811181

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t