Commit 2cfe99e1 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix invalid free crash in bookmarks loading code reported by Gids on IRC....

Fix invalid free crash in bookmarks loading code reported by Gids on IRC. Small test case is: (I'm not sure that it really needs to be that long)
#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
parent 4e4c2b06
......@@ -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 ) )
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment