nginx-upload-module icon indicating copy to clipboard operation
nginx-upload-module copied to clipboard

wrong memory overflow check in ngx_http_upload_module.c

Open sumit-kakadiya opened this issue 7 years ago • 0 comments

In function ngx_http_upload_eval_state_path() the following code u->state_store_path = ngx_pcalloc(r->pool, sizeof(ngx_path_t)); if(u->store_path == NULL) { return NGX_ERROR; }

Shouldn't it be as follow? u->state_store_path = ngx_pcalloc(r->pool, sizeof(ngx_path_t)); if(u->state_store_path == NULL) { return NGX_ERROR; }

sumit-kakadiya avatar Jun 29 '18 13:06 sumit-kakadiya