Possible dereference of Null
Opened this issue · 2 comments
LM4O322 commented
In result of static analyse of nginx source code (including ngx_http_modsecurity_module) with Svace static analyzer I found error of cathegory "DEREFERENCE OF NULL" (checker finds situations where possible value equal to null can be dereferenced) in ngx_http_modsecurity_module.c
Initialization with possible null returned value here:
And dereference of location->key field here:
Found by Linux Verification Center with SVACE
LM4O322 commented
I think that a check should be added to the value assigned to the location variable.