From 1e25a7e7ebb55516d522a8ab1c4b7938b5060fe5 Mon Sep 17 00:00:00 2001 From: Matthias Hopf Date: Wed, 22 Nov 2006 01:11:29 +0000 Subject: fix some potential security issues, patch by Matthias Hopf, mat at mshopf dot de Originally committed as revision 7153 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/alac.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libavcodec/alac.c') diff --git a/libavcodec/alac.c b/libavcodec/alac.c index d6386b40e0..793f71a11f 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -472,7 +472,10 @@ static int alac_decode_frame(AVCodecContext *avctx, ALAC_EXTRADATA_SIZE); return input_buffer_size; } - alac_set_info(alac); + if (alac_set_info(alac)) { + av_log(avctx, AV_LOG_ERROR, "alac: set_info failed\n"); + return input_buffer_size; + } alac->context_initialized = 1; } -- cgit v1.2.3