stream-lua-nginx-module
stream-lua-nginx-module copied to clipboard
Embed the power of Lua into NGINX TCP/UDP servers
I hereby granted the copyright of the changes in this pull request to the authors of this stream-lua-nginx-module project.
The Svace static analysis tool identified a potential issue in the function `ngx_stream_lua_req_socket()`, where the return value of `ngx_stream_lua_get_req` is not checked (line 1936): ```c r = ngx_stream_lua_get_req(L); ``` The...
**Issue** Fix potential null pointer dereference in ngx_stream_lua_sema_handler. **Description** The current implementation of `ngx_stream_lua_sema_handler` function lacks verification of the return value from `ngx_stream_lua_get_req`. It can potentially lead to a NULL...
``` local peek_num=1 while true do local chunk, err =sock:peek(peek_num) ngx.log(ngx.ERR,"peek ..." ,chunk, ' == ',peek_num ,err ) -- ngx.log(ngx.ERR,"peek ..." ,#chunk, ' == ',peek_num ,err,bytes_to_hex(chunk) ) peek_num=peek_num+1 end ngx.log(ngx.ERR,"退出循环...
Hello! I analyzed **Nginx** modules with **Svace** static analyzer. It found a potential problem in the code in /stream-lua-nginx-module/src/ngx_stream_lua_output.c ### Brief Description There is a potential `NULL` dereference issue in...
Hello! I analyzed **Nginx** modules with **Svace** static analyzer. It found a potential problem in the code in /stream-lua-nginx-module/src/ngx_stream_lua_semaphore.c ### Brief Description The function `ngx_stream_lua_sema_mm_cleanup` contains a potential **DEREF_AFTER_FREE** issue....
Hello! I analyzed **Nginx** modules with **Svace** static analyzer. It found a potential problem in the code in /stream-lua-nginx-module/src/ngx_stream_lua_socket_tcp.c ### Problem Description The function `ngx_stream_lua_socket_receiveuntil_iterator` contains a potential **null pointer...