Skip to content
Snippets Groups Projects
Commit 8097fc9a authored by Anton Khirnov's avatar Anton Khirnov
Browse files

4xm: check the return value of read_huffman_tables().

CC:libav-stable@libav.org
parent 311443f6
No related branches found
No related tags found
No related merge requests found
...@@ -721,6 +721,10 @@ static int decode_i_frame(FourXContext *f, const uint8_t *buf, int length) ...@@ -721,6 +721,10 @@ static int decode_i_frame(FourXContext *f, const uint8_t *buf, int length)
} }
prestream = read_huffman_tables(f, prestream); prestream = read_huffman_tables(f, prestream);
if (!prestream) {
av_log(f->avctx, AV_LOG_ERROR, "Error reading Huffman tables.\n");
return AVERROR_INVALIDDATA;
}
init_get_bits(&f->gb, buf + 4, 8 * bitstream_size); init_get_bits(&f->gb, buf + 4, 8 * bitstream_size);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment