[vlc-commits] demux: mkv: fix use after free (cid #1049108)
Francois Cartegnie
git at videolan.org
Sat Nov 30 21:34:48 CET 2013
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sat Nov 30 21:03:26 2013 +0100| [d1ffaaf14ce706d01c2341b8843e4de3b9d88d43] | committer: Francois Cartegnie
demux: mkv: fix use after free (cid #1049108)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1ffaaf14ce706d01c2341b8843e4de3b9d88d43
---
modules/demux/mkv/matroska_segment_parse.cpp | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment_parse.cpp b/modules/demux/mkv/matroska_segment_parse.cpp
index 360614d..9d1aa97 100644
--- a/modules/demux/mkv/matroska_segment_parse.cpp
+++ b/modules/demux/mkv/matroska_segment_parse.cpp
@@ -1036,16 +1036,14 @@ void matroska_segment_c::ParseChapterAtom( int i_level, KaxChapterAtom *ca, chap
else if( MKV_IS_ID( l, KaxChapterLanguage ) )
{
KaxChapterLanguage &lang =*(KaxChapterLanguage*)l;
- const char *psz = string( lang ).c_str();
-
- msg_Dbg( &sys.demuxer, "| | | | | + ChapterLanguage '%s'", psz );
+ msg_Dbg( &sys.demuxer, "| | | | | + ChapterLanguage '%s'",
+ string( lang ).c_str() );
}
else if( MKV_IS_ID( l, KaxChapterCountry ) )
{
KaxChapterCountry &ct =*(KaxChapterCountry*)l;
- const char *psz = string( ct ).c_str();
-
- msg_Dbg( &sys.demuxer, "| | | | | + ChapterCountry '%s'", psz );
+ msg_Dbg( &sys.demuxer, "| | | | | + ChapterCountry '%s'",
+ string( ct ).c_str() );
}
}
}
More information about the vlc-commits
mailing list