[FFmpeg-cvslog] 4xm: check the return value of read_huffman_tables().
Anton Khirnov
git at videolan.org
Tue Feb 26 03:39:02 CET 2013
ffmpeg | branch: release/1.1 | Anton Khirnov <anton at khirnov.net> | Wed Feb 13 20:46:08 2013 +0100| [bb3f1cad171b31537b64a9d19cabdbff50aca260] | committer: Reinhard Tartler
4xm: check the return value of read_huffman_tables().
CC:libav-stable at libav.org
(cherry picked from commit 8097fc9a2dd49d8e467b16c8bafaa96242b7fe46)
Signed-off-by: Reinhard Tartler <siretart at tauware.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bb3f1cad171b31537b64a9d19cabdbff50aca260
---
libavcodec/4xm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavcodec/4xm.c b/libavcodec/4xm.c
index fb03b7e..987285a 100644
--- a/libavcodec/4xm.c
+++ b/libavcodec/4xm.c
@@ -720,6 +720,10 @@ static int decode_i_frame(FourXContext *f, const uint8_t *buf, int length)
}
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);
More information about the ffmpeg-cvslog
mailing list