cache: initialize filter when fetching implicit chains
Pablo Neira Ayuso
maintainerPATCH 1/1 cache: initialize filter when fetching implicit chains
ASAN reports:
src/cache.c:734:25: runtime error: load of value 189, which is not a valid value for type '_Bool'
initialize filter, otherwise filter->reset.rule is uninitialized.
Fixes dbff26bfba83 ("cache: consolidate reset command")
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/cache.c +1 -1
@@ -1118,7 +1118,7 @@ err_ctx_list:static int implicit_chain_cache (struct netlink_ctx *ctx,struct table *table,const char *chain_name) { -struct nft_cache_filter filter; +struct nft_cache_filter filter = {};struct chain *chain;int ret =0 ;
Signature · 1 line
2.30.2