Menu

#2 memory malloc() in cgi gateway incorrect

open
nobody
None
5
2004-01-06
2004-01-06
Anonymous
No

two related problems, in resource.c:

(approx) line 717:
if( (i == 0) && (chQuery != NULL) ) size = strlen(chQuery);

should be:
f( (i == 0) && (chQuery != NULL) ) size =
strlen(chQuery) + 20; /* +20 for 'QUERY_STRING='
prepended below */

i.e. space needs to be allocated for the "QUERY_STRING="

Discussion


Log in to post a comment.