[MPlayer-cvslog] r33519 - trunk/stream/stream_cue.c
reimar
subversion at mplayerhq.hu
Sun May 29 14:16:13 CEST 2011
Author: reimar
Date: Sun May 29 14:16:13 2011
New Revision: 33519
Log:
Avoid possible crash if cue filename is very short.
Modified:
trunk/stream/stream_cue.c
Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c Sun May 29 14:05:59 2011 (r33518)
+++ trunk/stream/stream_cue.c Sun May 29 14:16:13 2011 (r33519)
@@ -210,6 +210,8 @@ static int cue_find_bin (const char *fir
fd_bin = -1;
for (i = 0; fd_bin == -1 && i < 6; i++) {
+ if (i > 1 && strlen(cue_filename) < 3)
+ break;
switch (i) {
case 0:
/* now try to open that file, without path */
More information about the MPlayer-cvslog
mailing list