Browse Source

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
pull/2/head
Antoine Cellerier 19 years ago
parent
commit
2cfe99e1e5
  1. 2
      src/input/input.c

2
src/input/input.c

@ -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 ) )
{

Loading…
Cancel
Save