# HG changeset patch # User ib # Date 1353858698 0 # Node ID ef2d3b306d6e296b63ffe30c39c926b770efd8a0 # Parent 8b8534de8b839c77fcb6eb8ff38ce1fcf966b3af Check for a non-empty filename. Otherwise there will be a buffer overflow if "." has to be copied as path. diff -r 8b8534de8b83 -r ef2d3b306d6e gui/util/list.c --- a/gui/util/list.c Sun Nov 25 15:13:19 2012 +0000 +++ b/gui/util/list.c Sun Nov 25 15:51:38 2012 +0000 @@ -293,7 +293,7 @@ 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);