Florian Westphal c5c6accd7b netfilter: nf_tables: move base hook annotation to init helper
coverity scanner says:
2187  if (nft_is_base_chain(chain)) {
vvv   CID 1505166:  Memory - corruptions  (UNINIT)
vvv   Using uninitialized value "basechain".
2188  basechain->ops.hook_ops_type = NF_HOOK_OP_NF_TABLES;

... I don't see how nft_is_base_chain() can evaluate to true
while basechain pointer is garbage.

However, it seems better to place the NF_HOOK_OP_NF_TABLES annotation
in nft_basechain_hook_init() instead.

Reported-by: coverity-bot <keescook+coverity-bot@chromium.org>
Addresses-Coverity-ID: 1505166 ("Memory - corruptions")
Fixes: 65b8b7bfc5284f ("netfilter: annotate nf_tables base hook ops")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2021-06-09 21:29:23 +02:00
..
2021-06-02 14:01:55 -07:00
2021-06-03 14:15:10 -07:00
2021-05-20 15:50:54 -07:00
2021-03-30 16:54:50 -07:00
2021-05-27 14:39:11 -07:00
2021-06-03 13:24:23 -07:00
2021-05-17 15:29:35 -07:00
2021-06-02 14:01:55 -07:00
2021-06-02 14:01:55 -07:00
2021-05-24 14:10:28 -07:00
2021-03-28 17:31:13 -07:00
2021-05-17 15:29:35 -07:00
2021-06-04 14:08:09 -07:00
2021-05-31 22:45:05 -07:00
2021-06-02 14:01:55 -07:00
2021-05-07 11:23:41 -07:00
2021-06-04 14:17:59 -07:00
2021-01-24 14:27:18 +01:00
2021-03-28 17:31:13 -07:00
2021-03-25 16:56:27 -07:00