- Security Fix

mod_proxy buffer overflow  CAN-2004-0492
This commit is contained in:
Dirk Meyer 2004-06-11 08:36:54 +00:00
parent 3cbdb5d1b1
commit 03ca0358d9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=111262
2 changed files with 14 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= apache+mod_ssl
PORTVERSION= ${VERSION_APACHE}+${VERSION_MODSSL}${PVERSION_MODSNMP}${PVERSION_MODACCEL}${PVERSION_MODDEFLATE}
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= www security
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \
${MASTER_SITES_MODSSL:S/$/:mod_ssl/} \

View file

@ -0,0 +1,13 @@
--- src/modules/proxy/proxy_util.c.orig Tue Feb 17 22:52:22 2004
+++ src/modules/proxy/proxy_util.c Fri Jun 11 10:24:12 2004
@@ -545,8 +545,8 @@
n = ap_bread(f, buf, buf_size);
}
else {
- n = ap_bread(f, buf, MIN((int)buf_size,
- (int)(len - total_bytes_rcvd)));
+ n = ap_bread(f, buf, MIN((size_t)buf_size,
+ (size_t)(len - total_bytes_rcvd)));
}
}