[MPlayer-cvslog] r27873 - trunk/vobsub.c

aurel subversion at mplayerhq.hu
Sat Nov 1 14:51:40 CET 2008


Author: aurel
Date: Sat Nov  1 14:51:39 2008
New Revision: 27873

Log:
vobsub: add sanity check

Modified:
   trunk/vobsub.c

Modified: trunk/vobsub.c
==============================================================================
--- trunk/vobsub.c	(original)
+++ trunk/vobsub.c	Sat Nov  1 14:51:39 2008
@@ -852,7 +852,8 @@ vobsub_parse_one_line(vobsub_t *vob, rar
 	char *line = NULL;
     do {
 	line_size = vobsub_getline(&line, &line_reserve, fd);
-	if (line_size < 0) {
+	if (line_size < 0 || line_size > 1000000 ||
+	    vob->extradata_len+line_size > 10000000) {
 	    break;
 	}
 



More information about the MPlayer-cvslog mailing list