On 9 Sep 2024, at 6:55, Mike Pattrick wrote: > Currently the Clang analyzer will complain about usage of an > uninitialized variable in the classifier. This is a false positive, but > not for a reason that could easily be detectable by clang. > > The classifier is not safe for multiple writer threads to use > simultaneously so all callers protect these functions from simultaneous > writes. However, this is not so clear from the code's static analysis > alone. To help Clang out here, the n_indicies count is saved onto the > stack instead of accessed from the subtables struct repeatedly. > > Acked-by: Eelco Chaudron <[email protected]> > Signed-off-by: Mike Pattrick <[email protected]> Thanks for sending out the v3, the changes look good to me. Cheers, Eelco Acked-by: Eelco Chaudron <[email protected]> _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- [ovs-dev] [PATCH v3 0/8] Address clang analyze warnings. Mike Pattrick
- [ovs-dev] [PATCH v3 1/8] ovsdb-error: Annotate non-nul... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 1/8] ovsdb-error: Annotate... Eelco Chaudron
- [ovs-dev] [PATCH v3 2/8] dpif-netdev: Remove undefined... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 2/8] dpif-netdev: Remove u... Eelco Chaudron
- [ovs-dev] [PATCH v3 3/8] jsonrpc: Don't access ovs_lis... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 3/8] jsonrpc: Don't access... Eelco Chaudron
- [ovs-dev] [PATCH v3 4/8] netlink-socket: Initialize so... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 4/8] netlink-socket: Initi... Eelco Chaudron
- [ovs-dev] [PATCH v3 5/8] classifier: Store n_indices b... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 5/8] classifier: Store n_i... Eelco Chaudron
- Re: [ovs-dev] [PATCH v3 5/8] classifier: Store n_i... Simon Horman
- [ovs-dev] [PATCH v3 6/8] vconn: Always properly free f... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 6/8] vconn: Always properl... Eelco Chaudron
- Re: [ovs-dev] [PATCH v3 6/8] vconn: Always pro... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 6/8] vconn: Always properl... Simon Horman
- [ovs-dev] [PATCH v3 7/8] mcast-snooping: Properly chec... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 7/8] mcast-snooping: Prope... Eelco Chaudron
- Re: [ovs-dev] [PATCH v3 7/8] mcast-snooping: Prope... Simon Horman
- [ovs-dev] [PATCH v3 8/8] mcast-snooping: Don't access ... Mike Pattrick
- Re: [ovs-dev] [PATCH v3 8/8] mcast-snooping: Don't... Eelco Chaudron
