On 20 Aug 2024, at 15: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. > > Signed-off-by: Mike Pattrick <[email protected]> This change looks good to me. Acked-by: Eelco Chaudron <[email protected]> _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
- [ovs-dev] [PATCH v2 0/8] Address clang analyze warnings. Mike Pattrick
- [ovs-dev] [PATCH v2 5/8] classifier: Store n_indices b... Mike Pattrick
- Re: [ovs-dev] [PATCH v2 5/8] classifier: Store n_i... Eelco Chaudron
- [ovs-dev] [PATCH v2 2/8] dpif-netdev: Remove undefined... Mike Pattrick
- Re: [ovs-dev] [PATCH v2 2/8] dpif-netdev: Remove u... Ilya Maximets
- Re: [ovs-dev] [PATCH v2 2/8] dpif-netdev: Remo... Eelco Chaudron
- [ovs-dev] [PATCH v2 1/8] ovsdb-error: Annotate non-nul... Mike Pattrick
- Re: [ovs-dev] [PATCH v2 1/8] ovsdb-error: Annotate... Ilya Maximets
- Re: [ovs-dev] [PATCH v2 1/8] ovsdb-error: Annotate... Eelco Chaudron
- [ovs-dev] [PATCH v2 6/8] vconn: Always properly free f... Mike Pattrick
- Re: [ovs-dev] [PATCH v2 6/8] vconn: Always properl... Eelco Chaudron
- [ovs-dev] [PATCH v2 4/8] netlink-socket: Initialize so... Mike Pattrick
- Re: [ovs-dev] [PATCH v2 4/8] netlink-socket: Initi... Ilya Maximets
