stoddard 99/03/19 15:18:02
Modified: src/main http_core.c
Log:
Fix Win32 CGI buffer overflow
Revision Changes Path
1.255 +1 -1 apache-1.3/src/main/http_core.c
Index: http_core.c
===================================================================
RCS file: /export/home/cvs/apache-1.3/src/main/http_core.c,v
retrieving revision 1.254
retrieving revision 1.255
diff -u -r1.254 -r1.255
--- http_core.c 1999/03/07 15:41:56 1.254
+++ http_core.c 1999/03/19 23:18:01 1.255
@@ -865,7 +865,7 @@
return FileTypeUNKNOWN;
}
- bResult = ReadFile(hFile, (void*) &buffer, sizeof(buffer),
+ bResult = ReadFile(hFile, (void*) &buffer, sizeof(buffer) - 1,
&nBytesRead, NULL);
if (!bResult || (nBytesRead == 0)) {
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,