mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:46:30 +02:00
[package] uhttpd: fix wrongly applied sizeof() leading to writing beyound end of buffer and subsequent data corruption (#11557)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32005 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f91824b22d
commit
28e515440f
@ -8,7 +8,7 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=uhttpd
|
||||
PKG_RELEASE:=33
|
||||
PKG_RELEASE:=34
|
||||
|
||||
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
|
||||
PKG_CONFIG_DEPENDS := \
|
||||
|
@ -385,10 +385,10 @@ static struct http_request * uh_http_header_recv(struct client *cl)
|
||||
char *bufptr = cl->httpbuf.buf;
|
||||
char *idxptr = NULL;
|
||||
|
||||
ssize_t blen = sizeof(cl->httpbuf)-1;
|
||||
ssize_t blen = sizeof(cl->httpbuf.buf)-1;
|
||||
ssize_t rlen = 0;
|
||||
|
||||
memset(bufptr, 0, sizeof(cl->httpbuf));
|
||||
memset(bufptr, 0, sizeof(cl->httpbuf.buf));
|
||||
|
||||
while (blen > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user