Changeset 32005


Ignore:
Timestamp:
2012-05-30T17:30:07+02:00 (6 years ago)
Author:
jow
Message:

[package] uhttpd: fix wrongly applied sizeof() leading to writing beyound end of buffer and subsequent data corruption (#11557)

Location:
trunk/package/uhttpd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uhttpd/Makefile

    r31931 r32005  
    99 
    1010PKG_NAME:=uhttpd 
    11 PKG_RELEASE:=33 
     11PKG_RELEASE:=34 
    1212 
    1313PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • trunk/package/uhttpd/src/uhttpd.c

    r31931 r32005  
    386386        char *idxptr = NULL; 
    387387 
    388         ssize_t blen = sizeof(cl->httpbuf)-1; 
     388        ssize_t blen = sizeof(cl->httpbuf.buf)-1; 
    389389        ssize_t rlen = 0; 
    390390 
    391         memset(bufptr, 0, sizeof(cl->httpbuf)); 
     391        memset(bufptr, 0, sizeof(cl->httpbuf.buf)); 
    392392 
    393393        while (blen > 0) 
Note: See TracChangeset for help on using the changeset viewer.