Fixes: freeing of uninitialized pointers Fixes: part of 58299
Unified · Split
| @@ -1174,8 +1174,8 @@ ff_jpeg2000_decode_htj2k(const Jpeg2000DecoderContext *s, Jpeg2000CodingStyle *c · 1173 unmodified lines | ||
| 1174 | 1174 | int ret; |
| 1175 | 1175 | |
| 1176 | 1176 | /* Temporary buffers */ |
| 1177 | − int32_t *sample_buf; | |
| 1178 | − uint8_t *block_states; | |
| 1177 | + int32_t *sample_buf = NULL; | |
| 1178 | + uint8_t *block_states = NULL; | |
| 1179 | 1179 | |
| 1180 | 1180 | int32_t n, val; // Post-processing |
| 1181 | 1181 | |