Description
Return value of a function lua_touserdata
is dereferenced without checking for NULL, but it is usually checked for this function:
lua-nginx-module/src/ngx_http_lua_socket_tcp.c
Lines 4662 to 4673 in 9688812
Similar issue with fucntion ngx_http_lua_get_req
:
lua-nginx-module/src/ngx_http_lua_socket_tcp.c
Lines 5112 to 5117 in 9688812
After having been compared to a NULL value:
lua-nginx-module/src/ngx_http_lua_socket_tcp.c
Lines 1814 to 1816 in 9688812
pointer server_name->data
is dereferenced without null check by calling function memcpy
:
lua-nginx-module/src/ngx_http_lua_socket_tcp.c
Lines 1855 to 1857
in
9688812
lua-nginx-module/src/ngx_http_lua_socket_tcp.c
Lines 1855 to 1857 in 9688812
Found by Linux Verification Center with SVACE