]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Annotate false positive uninit (CID #1504020) (#4692)
authorJames Jones <jejones3141@gmail.com>
Wed, 24 Aug 2022 22:01:59 +0000 (17:01 -0500)
committerGitHub <noreply@github.com>
Wed, 24 Aug 2022 22:01:59 +0000 (18:01 -0400)
coverity doesn't realize that at this point ether is necessarily
initialized, with all the fr_base16_decode()s successful.

src/lib/util/value.c

index 53568bc6ecb22c06125b9e4bd18331fe7b6dd134..6834728fba17f64124fc57c41954514d3a142c3a 100644 (file)
@@ -4922,6 +4922,7 @@ parse:
                fr_base16_decode(&err, &dbuff, &our_in, true);
                if (err != FR_SBUFF_PARSE_OK) goto ether_error;
 
+               /* coverity[uninit_use_in_call] */
                fr_value_box_ethernet_addr(dst, dst_enumv, &ether, tainted);
 
                return fr_sbuff_set(in, &our_in);