[FFmpeg-cvslog] r25659 - trunk/libavformat/matroskadec.c
elenril
subversion
Wed Nov 3 07:29:04 CET 2010
Author: elenril
Date: Wed Nov 3 07:29:04 2010
New Revision: 25659
Log:
matroskadec: skip invalid tags with no TagName
fixes segfault in issue 2328
Modified:
trunk/libavformat/matroskadec.c
Modified: trunk/libavformat/matroskadec.c
==============================================================================
--- trunk/libavformat/matroskadec.c Wed Nov 3 00:26:23 2010 (r25658)
+++ trunk/libavformat/matroskadec.c Wed Nov 3 07:29:04 2010 (r25659)
@@ -1033,6 +1033,11 @@ static void matroska_convert_tag(AVForma
for (i=0; i < list->nb_elem; i++) {
const char *lang = strcmp(tags[i].lang, "und") ? tags[i].lang : NULL;
+
+ if (!tags[i].name) {
+ av_log(s, AV_LOG_WARNING, "Skipping invalid tag with no TagName.\n");
+ continue;
+ }
if (prefix) snprintf(key, sizeof(key), "%s/%s", prefix, tags[i].name);
else av_strlcpy(key, tags[i].name, sizeof(key));
if (tags[i].def || !lang) {
More information about the ffmpeg-cvslog
mailing list