On 17 Mar 2026, at 19:55, Mike Pattrick via dev wrote:

> Clang analyzer incorrectly reports that an uninitialized buffer is
> passed to json_parser_feed().  The buffer is initialized by fread()
> before use, but declaring it inside the loop scope confuses the
> analyzer's control flow analysis on subsequent loop iterations.
>
> Found with clang analyze.
>
> Fixes: f38b84ea2b6b ("Implement JSON parsing and serialization.")
> Signed-off-by: Mike Pattrick <[email protected]>

Hi Mike,

If I apply your next patch and undo this change, I get no static analyzer 
warning.
I'm using clang version 19.1.7 (Fedora 19.1.7-5.fc41).

Cheers,
Eelco

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

Reply via email to