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@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog
participants (1)
-
Bertrand Baudet