# HG changeset patch # User diego # Date 1181507701 0 # Node ID 8c94645756114364be7d2eb16baaa59bc011fa3d # Parent fdaf754594df9567d72f328e48ffa6f202c579ca Add a bounds check on AVProbeData input. patch by Ronald S. Bultje, rbultje ronald.bitfreak net thread: Date: Sat, 09 Jun 2007 19:22:17 -0400 Subject: [FFmpeg-devel] lavf probing diff -r fdaf754594df -r 8c9464575611 utils.c --- a/utils.c Fri Jun 08 17:34:37 2007 +0000 +++ b/utils.c Sun Jun 10 20:35:01 2007 +0000 @@ -1936,7 +1936,7 @@ } } }else if(st->codec->codec_type == CODEC_TYPE_AUDIO) { - if (st->codec->codec_id == CODEC_ID_NONE) { + if (st->codec->codec_id == CODEC_ID_NONE && probe_data[st->index].buf_size > 0) { codec_identified[st->index] = set_codec_from_probe_data(st, &(probe_data[st->index]), 0); if (codec_identified[st->index]) { st->need_parsing = AVSTREAM_PARSE_FULL;