[FFmpeg-devel] [PATCH 1/7] wav: fix potential crash in case of 'fmt ' tag not found

Clément Bœsch ubitux at gmail.com
Thu Sep 1 20:27:39 CEST 2011


On Thu, Sep 01, 2011 at 02:30:18AM +0200, Clément Bœsch wrote:
> ---
>  libavformat/wav.c |    6 +++++-
>  1 files changed, 5 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/wav.c b/libavformat/wav.c
> index 1ae9413..0d06fc3 100644
> --- a/libavformat/wav.c
> +++ b/libavformat/wav.c
> @@ -387,7 +387,7 @@ static int wav_read_header(AVFormatContext *s,
>      int rf64;
>      unsigned int tag;
>      AVIOContext *pb = s->pb;
> -    AVStream *st;
> +    AVStream *st = NULL;
>      WAVContext *wav = s->priv_data;
>      int ret, got_fmt = 0;
>      int64_t next_tag_ofs, data_ofs = -1;

Only pushed that chunk. See commit's description.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110901/f5ad635b/attachment.asc>


More information about the ffmpeg-devel mailing list