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
1174 int ret;1174 int ret;
1175 1175
1176 /* Temporary buffers */1176 /* Temporary buffers */
1177 int32_t *sample_buf;1177 int32_t *sample_buf = NULL;
1178 uint8_t *block_states;1178 uint8_t *block_states = NULL;
1179 1179
1180 int32_t n, val; // Post-processing1180 int32_t n, val; // Post-processing
1181 1181

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