[MPlayer-cvslog] r35480 - trunk/gui/util/list.c
ib
subversion at mplayerhq.hu
Sun Nov 25 16:51:38 CET 2012
Author: ib
Date: Sun Nov 25 16:51:38 2012
New Revision: 35480
Log:
Check for a non-empty filename.
Otherwise there will be a buffer overflow
if "." has to be copied as path.
Modified:
trunk/gui/util/list.c
Modified: trunk/gui/util/list.c
==============================================================================
--- trunk/gui/util/list.c Sun Nov 25 16:13:19 2012 (r35479)
+++ trunk/gui/util/list.c Sun Nov 25 16:51:38 2012 (r35480)
@@ -293,7 +293,7 @@ int add_to_gui_playlist(const char *what
char *path;
plItem *item;
- if (!what || (how != PLAYLIST_ITEM_APPEND && how != PLAYLIST_ITEM_INSERT))
+ if (!what || !*what || (how != PLAYLIST_ITEM_APPEND && how != PLAYLIST_ITEM_INSERT))
return 0;
file = mp_basename(what);
More information about the MPlayer-cvslog
mailing list