]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
Annotate calls that as used will not return NULL (CID #1503961) (#4577)
authorJames Jones <jejones3141@gmail.com>
Wed, 22 Jun 2022 21:11:40 +0000 (16:11 -0500)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 21:11:40 +0000 (16:11 -0500)
commitffdcdc2d66b7c8669e91fe9f4f74209dd694424b
tree3a14aaa30050086ca5b192156cd79047a5e1195a
parentea7ffecf1413ff6592bab7898465b3c2f984e48e
Annotate calls that as used will not return NULL (CID #1503961) (#4577)

The calls in question are those in pair_list_init() that iterate
over a pair list built up from a string. As long as the string
is non-empty, the pair list won't be empty. As long as perc (the
percentage) is no larger than 100, the code won't pass NULL to
fr_pair_copy()... and one can see that's the case for all calls
to pair_list_init(). Coverity apparently doesn't look at that
context.
src/lib/util/pair_list_perf_test.c