webnet icon indicating copy to clipboard operation
webnet copied to clipboard

A lightweight, customizable embedded Web Server for RT-Thread

Results 2 webnet issues
Sort by recently updated
recently updated
newest added

第一处: /src/wn_module.c 172行-179行 char *path_gz = wn_malloc(strlen(request->path) + 4); if (path_gz != RT_NULL) { sprintf(path_gz, "%s.gz", request->path); stat_result = stat(request->path, &file_stat); wn_free(path_gz); } 如果这里的strlen(request->path)=0xfffffffe,加上4之后发生整数溢出,wn_malloc的实际大小变为1,后续的sprintf操作将会导致堆溢出。 第二处: /src/wn_module.c 235行-239行 char *path_gz =...

复现步骤:7. Upload File Test 中 未选择任何文件直接点上传。 日志如下: ``` Upload FileName: Content-Type : application/octet-stream save to: /webnet/upload/ ((((rt_ubase_t)rmem) & (RT_ALIGN_SIZE - 1)) == 0) assertion failed at function:rt_free, line number:555 ```