On Thu, Jan 11, 2024 at 05:42:24PM +0100, Eelco Chaudron wrote:
> The make clang-analyze target reports an 'Dereference of null
> pointer' and an 'Uninitialized argument value' issue due to
> it assumes some function can return NULL.
> 
> This patch annotates these functions, so the static analyzer
> is aware of this.
> 
> Signed-off-by: Eelco Chaudron <[email protected]>
> ---
> 
> v2: Accidentally added nullable_xstrdup(), removed it.

Thanks Eelco,

I ran this with clang-16 and do see a reduction in warnings flagged.

Acked-by: Simon Horman <[email protected]>

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to