Skip to content

bugfix: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_handler#407

Open
petrvaganoff wants to merge 1 commit into
openresty:masterfrom
petrvaganoff:dev-645
Open

bugfix: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_handler#407
petrvaganoff wants to merge 1 commit into
openresty:masterfrom
petrvaganoff:dev-645

Conversation

@petrvaganoff

Copy link
Copy Markdown

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
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
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.

1 participant