[Mplayer-cvslog] CVS: main http.c,1.2,1.3
Bertrand Baudet
bertrand at users.sourceforge.net
Tue Jun 5 10:46:33 CEST 2001
Update of /cvsroot/mplayer/main
In directory usw-pr-cvs1:/tmp/cvs-serv32478
Modified Files:
http.c
Log Message:
Checked the length arg when appending data.
Index: http.c
===================================================================
RCS file: /cvsroot/mplayer/main/http.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** http.c 2001/05/29 16:57:48 1.2
--- http.c 2001/06/05 08:46:31 1.3
***************
*** 41,45 ****
http_response_append( HTTP_header_t *http_hdr, char *response, int length ) {
char *ptr = NULL;
! if( http_hdr==NULL || response==NULL ) return -1;
ptr = (char*)malloc( http_hdr->buffer_size+length );
if( ptr==NULL ) {
--- 41,45 ----
http_response_append( HTTP_header_t *http_hdr, char *response, int length ) {
char *ptr = NULL;
! if( http_hdr==NULL || response==NULL || length<0 ) return -1;
ptr = (char*)malloc( http_hdr->buffer_size+length );
if( ptr==NULL ) {
_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
More information about the MPlayer-cvslog
mailing list