nginx-upload-module
nginx-upload-module copied to clipboard
wrong memory overflow check in ngx_http_upload_module.c
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; }