You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In result of static analyse of nginx sources (including this module) code with Svace static analyzer I found error of cathegory "NULL_AFTER_DEREF" (situations where first, a pointer is dereferenced, and then it is compared to null) in ngx_http_subs_filter_module.c
the problem affects ngx_http_subs_init_context() function on lines 295-299
Is it correct to compare slcf->sub_pairs with NULL in line 297 after dereference of it in line 295? Should it be ctx->sub_pairs instead of slcf->sub_pairs in comparison?
The text was updated successfully, but these errors were encountered:
In result of static analyse of nginx sources (including this module) code with Svace static analyzer I found error of cathegory "NULL_AFTER_DEREF" (situations where first, a pointer is dereferenced, and then it is compared to null) in ngx_http_subs_filter_module.c
the problem affects
ngx_http_subs_init_context()
function on lines 295-299https://github.com/yaoweibin/ngx_http_substitutions_filter_module/blob/master/ngx_http_subs_filter_module.c#L295-L299
Is it correct to compare
slcf->sub_pairs
with NULL in line 297 after dereference of it in line 295? Should it bectx->sub_pairs
instead ofslcf->sub_pairs
in comparison?The text was updated successfully, but these errors were encountered: