]> git.sesse.net Git - vlc/commitdiff
Fix invalid free crash in bookmarks loading code reported by Gids on IRC. Small test...
authorAntoine Cellerier <dionoea@videolan.org>
Mon, 18 Jun 2007 19:54:38 +0000 (19:54 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Mon, 18 Jun 2007 19:54:38 +0000 (19:54 +0000)
#EXTVLCOPT:bookmarks={name=Rainforest Shmainforest,bytes=5276429,time=1},{name=Spontaneous Combustion,bytes=113071718,time=1331},{name=The Succubus,bytes=218546569,time=2663},{name=Jakovasaurs,bytes=326602991,time=3999},{name=Tweek Vs. Craig,bytes=436968699,time=5326},{name=Sexual Harassment Panda,bytes=542655194,time=6658}
episodes-1-6.m4v

src/input/input.c

index 446b7cac6ca9ea6de1c0cee8b8060ac50ae300ad..dc2276198683ea6a321bee78cf48468a7356fd1c 100644 (file)
@@ -228,7 +228,7 @@ static input_thread_t *Create( vlc_object_t *p_parent, input_item_t *p_item,
                      *psz_end = 0;
                      if( !strncmp( psz_start, "name=", 5 ) )
                      {
-                         p_seekpoint->psz_name = psz_start + 5;
+                         p_seekpoint->psz_name = strdup(psz_start + 5);
                      }
                      else if( !strncmp( psz_start, "bytes=", 6 ) )
                      {