[Mplayer-cvslog] CVS: main asxparser.c,1.5,1.6
Arpi of Ize
arpi at mplayerhq.hu
Fri Oct 25 16:13:53 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv16749
Modified Files:
asxparser.c
Log Message:
patch for crashes/memory corruptions in ASX playlist parser.
by Gregory Kovriga <gkovriga at techunix.technion.ac.il>
Index: asxparser.c
===================================================================
RCS file: /cvsroot/mplayer/main/asxparser.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- asxparser.c 23 Apr 2002 20:06:00 -0000 1.5
+++ asxparser.c 25 Oct 2002 14:13:32 -0000 1.6
@@ -211,11 +211,11 @@
val[ptr2-ptr1] = '\0';
n_attrib++;
- attribs = (char**)realloc(attribs,2*n_attrib*sizeof(char*)+1);
+ attribs = (char**)realloc(attribs,(2*n_attrib+1)*sizeof(char*));
attribs[n_attrib*2-2] = attrib;
attribs[n_attrib*2-1] = val;
- ptr1 = ptr2+2;
+ ptr1 = ptr2+1;
}
if(n_attrib > 0)
More information about the MPlayer-cvslog
mailing list