Commit 7585bf9
Petr Vaganov
fixes: add assert for ngx_stream_lua_get_req in ngx_stream_lua_sema_timeout_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>1 parent 11f9e38 commit 7585bf9
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
534 | 534 | | |
535 | 535 | | |
536 | 536 | | |
| 537 | + | |
537 | 538 | | |
538 | 539 | | |
539 | 540 | | |
| |||
0 commit comments