Skip to content

optimize: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_handler - #407

Merged
zhuizhuhaomeng merged 1 commit into
openresty:masterfrom
petrvaganoff:dev-645
Nov 25, 2026
Merged

zhuizhuhaomeng merged 1 commit into
openresty:masterfrom
petrvaganoff:dev-645

Conversation

@petrvaganoff

Copy link
Copy Markdown
Contributor

DEREF_OF_NULL.RET.STAT Return value of a function 'ngx_stream_lua_get_req' is dereferenced at ngx_stream_lua_semaphore.c:537 without checking for NULL, but it is usually checked for this function (35/41).

Add assert for consistent of code.

Found by Linux Verification Center with Svace.

…imeout_handler

DEREF_OF_NULL.RET.STAT Return value of a function 'ngx_stream_lua_get_req' is
dereferenced at ngx_stream_lua_semaphore.c:537 without checking for NULL,
but it is usually checked for this function (35/41).

Found by Linux Verification Center with Svace.

Signed-off-by: Petr Vaganov <petrvaganoff@gmail.com>
@petrvaganoff

petrvaganoff commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Why I see an error of title RP?
It seems a valid title.

UPD: bugfix worked!

@petrvaganoff petrvaganoff changed the title fixes: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_handler bugfix: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_handler Jul 9, 2026
@zhuizhuhaomeng zhuizhuhaomeng changed the title bugfix: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_handler optimize: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_handler Nov 25, 2026
@zhuizhuhaomeng
zhuizhuhaomeng merged commit 39fbb2e into openresty:master Nov 25, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants