]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
3 years agoAdd "flat list" nested attributes to tests of fr_pair_find_by_da_nested()
Nick Porter [Tue, 16 Aug 2022 14:33:18 +0000 (15:33 +0100)] 
Add "flat list" nested attributes to tests of fr_pair_find_by_da_nested()

3 years agoAdd basic tests for fr_pair_find_by_da_nested()
Nick Porter [Tue, 16 Aug 2022 10:46:32 +0000 (11:46 +0100)] 
Add basic tests for fr_pair_find_by_da_nested()

3 years agoAdd fr_pair_find_by_da_nested() to find pairs by their da structure
Nick Porter [Thu, 11 Aug 2022 11:11:15 +0000 (12:11 +0100)] 
Add fr_pair_find_by_da_nested() to find pairs by their da structure

3 years agoTypo
Nick Porter [Tue, 16 Aug 2022 15:56:00 +0000 (16:56 +0100)] 
Typo

3 years agodisallow !* and *= for new edit sections
Alan T. DeKok [Tue, 16 Aug 2022 15:34:19 +0000 (11:34 -0400)] 
disallow !* and *= for new edit sections

3 years agoAdd pair_inline.c
Arran Cudbard-Bell [Tue, 16 Aug 2022 13:22:20 +0000 (21:22 +0800)] 
Add pair_inline.c

3 years agoadd API to get parent VP from list.
Alan T. DeKok [Tue, 16 Aug 2022 13:12:36 +0000 (09:12 -0400)] 
add API to get parent VP from list.

3 years agoRemove horrible macro hacks in pair.c and replace them with a different set of horrib...
Arran Cudbard-Bell [Tue, 16 Aug 2022 09:14:18 +0000 (17:14 +0800)] 
Remove horrible macro hacks in pair.c and replace them with a different set of horrible hacks

3 years agonum always >= 1
Nick Porter [Tue, 16 Aug 2022 07:32:57 +0000 (08:32 +0100)] 
num always >= 1

3 years agoslen always < 0
Nick Porter [Tue, 16 Aug 2022 07:21:59 +0000 (08:21 +0100)] 
slen always < 0

3 years agoRemove UNUSED
Nick Porter [Tue, 16 Aug 2022 07:17:33 +0000 (08:17 +0100)] 
Remove UNUSED

3 years agoDon't link a shared library without a -rpath option
Tony Finch [Wed, 10 Aug 2022 12:16:24 +0000 (13:16 +0100)] 
Don't link a shared library without a -rpath option

A few of the BIND9 programs have common code that is statically
linked. For example `dighost.c` is used by both `dig` and `host`.
`libdighost.la` is specified to automake in noinst_LTLIBRARIES, which
eventually becomes a libtool --mode=link invocation without a -rpath
argument.

GNU libtool interprets a link invocation without -rpath this as an
instruction to make a static library only, which agrees with the
comment in `link_fixup()` in jlibtool. But when cmd->output ==
OUT_LIB, jlibtool still tries to build a dynamic library. This fails
on my Mac; if I remove ERROR("Installation mode requires -rpath")
it links dynamically and fails at runtime.

I am not sure if jlibtool should have worked out the correct
cmd->output mode earlier, but if so the comment would be in the wrong
place.

3 years agoDon't add an empty path to the command line
Tony Finch [Tue, 9 Aug 2022 19:26:12 +0000 (20:26 +0100)] 
Don't add an empty path to the command line

This change is a small cleanup to prepapare for the next commit.
No functional change except to add some debug logging.

3 years agoMore flexible library version number format
Tony Finch [Tue, 9 Aug 2022 19:18:56 +0000 (20:18 +0100)] 
More flexible library version number format

The BIND9 build system passes its complete version number to libtool
(e.g. 9.19.5-dev) which is not the format expected by jlibtool. This
change allows a wider range of punctuation between version numbers
so that jlibtool can parse out BIND's major and minor versions.

3 years agoA NOTICE() should be DEBUG()
Tony Finch [Wed, 10 Aug 2022 12:27:30 +0000 (13:27 +0100)] 
A NOTICE() should be DEBUG()

This is more consistent with other command arguments.

3 years agoCheck the return value from strdup()
Tony Finch [Tue, 9 Aug 2022 19:32:54 +0000 (20:32 +0100)] 
Check the return value from strdup()

Simlar to malloc()

3 years agoDiscard --tag options
Tony Finch [Tue, 9 Aug 2022 18:02:30 +0000 (19:02 +0100)] 
Discard --tag options

The BIND9 build system puts the --tag option at the start of the
libtool command-line. With jlibtool this resulted in the erroneous
command `sh -c "--tag=..."`.

The help text says that jlibtool ignores --tag; this commit changes
jlibtool to strip --tag rather than passing it through.

3 years ago%l can be uint64_t with no loss of generality.
Alan T. DeKok [Sun, 14 Aug 2022 20:37:54 +0000 (16:37 -0400)] 
%l can be uint64_t with no loss of generality.

CID #1508485

3 years agoadd flatten / unflatten API
Alan T. DeKok [Sat, 13 Aug 2022 15:30:21 +0000 (11:30 -0400)] 
add flatten / unflatten API

which convert pairs from a (mostly) flat list of leaves, to
a tree-like structure.

Many of the protocols alread decode/encode TLVs, so those are
left alone.  Groups are left alone, as DHCPv6 uses them a lot.

structs likely need more tests to be sure that they work in all
cases, including when structs contain structs

3 years agocond_eval returns bool so cannot be < 0
Nick Porter [Mon, 15 Aug 2022 13:24:21 +0000 (14:24 +0100)] 
cond_eval returns bool so cannot be < 0

3 years agocreate fr_pair_list_foreach()
Alan T. DeKok [Sat, 13 Aug 2022 13:50:08 +0000 (09:50 -0400)] 
create fr_pair_list_foreach()

which is also safe to use when deleting the iteration variable

3 years agofix leak / crash on error
Alan T. DeKok [Sat, 13 Aug 2022 13:14:22 +0000 (09:14 -0400)] 
fix leak / crash on error

don't free "&n" or "&vp".  They're just ponters.

Don't free "vp" on error, it wasn't allocated.  Free "n" instead,
as it was the recently allocated pair.

3 years agorearrange code and do some cleanups
Alan T. DeKok [Fri, 12 Aug 2022 23:20:25 +0000 (19:20 -0400)] 
rearrange code and do some cleanups

the internal functions randomly use public functions or internal
functions.  Instead of making everyone try to remember what's what,
we just let them use the public functions most of the time.

It also means that if we accidentally use the public function names,
we avoid a bounce through another function call

The fr_pair_order...() functions are now only used when absolutely
necessary.  Most basic used (head / prev / next / num_elements)
can just use the "public" APIs, and get the benefit of using
the internal functions

3 years agodon't call "find by index" with 0, when another API call would do
Alan T. DeKok [Fri, 12 Aug 2022 22:56:54 +0000 (18:56 -0400)] 
don't call "find by index" with 0, when another API call would do

All of these calls just find the first da, so fr_pair_find_by_da()
is the better choice.  The "find by index" calls shoud be used
when the index is either created at run-time, or is non-zero

3 years agouse new tmpl_dcursor_build_init() API
Alan T. DeKok [Fri, 12 Aug 2022 15:50:07 +0000 (11:50 -0400)] 
use new tmpl_dcursor_build_init() API

3 years agoremove unnecessary brackets
Alan T. DeKok [Fri, 12 Aug 2022 15:49:39 +0000 (11:49 -0400)] 
remove unnecessary brackets

3 years agodon't mash NUM_UNSPEC to NUM_ALL for edit lists
Alan T. DeKok [Fri, 12 Aug 2022 15:43:00 +0000 (11:43 -0400)] 
don't mash NUM_UNSPEC to NUM_ALL for edit lists

3 years agono need for an extra "if" statement
Alan T. DeKok [Thu, 11 Aug 2022 17:38:26 +0000 (13:38 -0400)] 
no need for an extra "if" statement

3 years agoonly groups can use "ref=".
Alan T. DeKok [Thu, 11 Aug 2022 15:31:11 +0000 (11:31 -0400)] 
only groups can use "ref=".

Perhaps when other things get fixed, we can have TLVs use
"ref=" instead of "clone="

3 years agoCorrect building of extents so that the last found parent is always returned
Nick Porter [Tue, 2 Aug 2022 15:16:51 +0000 (16:16 +0100)] 
Correct building of extents so that the last found parent is always returned

3 years agoMove ulang_subrequest_parent_resume() to use tmpl_dcursor for building pairs
Nick Porter [Thu, 11 Aug 2022 15:09:28 +0000 (16:09 +0100)] 
Move ulang_subrequest_parent_resume() to use tmpl_dcursor for building pairs

3 years agoMove pop of nested cursors to after new pairs have been added
Nick Porter [Thu, 11 Aug 2022 13:46:20 +0000 (14:46 +0100)] 
Move pop of nested cursors to after new pairs have been added

to avoid a use after free

3 years agoAdd callback to tmpl_dcursors to build out missing pairs (#4657)
Nick Porter [Thu, 11 Aug 2022 12:54:01 +0000 (13:54 +0100)] 
Add callback to tmpl_dcursors to build out missing pairs (#4657)

* Define callback routine to populate missing #fr_pair_t from #tmpl_dcursor_t

* Populate build callback when initialising #tmpl_dcursor_t

* When initialising a dcursor, always call fr_dcursor_next()

if the cursor is initialised with an itertator function - even with an
empty list, the iterator may be setting something up.

tmpl_cursors use this to potentially populate attributes into the list.

* If no vp is found, and a fill callback is defined call it

Only valid for attribute references with an unspecified number, [0] or
[n]

* Define simple pair building callback for tmpl_dcursors

* Add list debug output to tmpl_dcursor_tests for test failures.

* Add smaller copy of test pairs to tmpl_dcursor_tests

* Add tmpl_dcursor_tests which populate missing pairs

* Improve comments

Co-authored-by: Arran Cudbard-Bell <a.cudbardb@freeradius.org>
3 years agos/fr_pair_list_len/ff_pair_list_num_elements/ to be consistent with every other heap...
Arran Cudbard-Bell [Thu, 11 Aug 2022 11:15:46 +0000 (19:15 +0800)] 
s/fr_pair_list_len/ff_pair_list_num_elements/ to be consistent with every other heap and list in the server...

3 years agoOnly callbacks get the _ prefix
Arran Cudbard-Bell [Thu, 11 Aug 2022 11:07:56 +0000 (19:07 +0800)] 
Only callbacks get the _ prefix

3 years agov4: Further simplifications and fixes for tmpl_dcursors (#4651)
Nick Porter [Thu, 11 Aug 2022 11:03:56 +0000 (12:03 +0100)] 
v4: Further simplifications and fixes for tmpl_dcursors (#4651)

* Amalgamate child_eval functions for all tmpl types

* Remove unused list_head from eval function

* Define _tmpl_cursor_common_push

to clarify push / pop on the nested cursor stack

* Move matching of attribute da to dcursor iterator function

* Just use a single child cursor init function

The only difference between a leaf and intermediate node is allocation
of the #tmpl_cursor_nested_t

* Evaluation function no longer needed

3 years agoTest the fr_dbuff_out() for variable width (CID #1503985) (#4650)
James Jones [Thu, 11 Aug 2022 10:32:29 +0000 (05:32 -0500)] 
Test the fr_dbuff_out() for variable width (CID #1503985) (#4650)

3 years agoAnnotate uses of buffer after fr_base16_decode() (CIDs below) (#4662)
James Jones [Thu, 11 Aug 2022 10:32:07 +0000 (05:32 -0500)] 
Annotate uses of buffer after fr_base16_decode() (CIDs below) (#4662)

Coverity doesn't recognize that fr_base16_decode() fills in
the output buffer passed to it. (In CID 1503958, coverity
objects to the fr_base16_decode() call itself. Apparently the
buffer has to be initialized before it's initalized.)

CIDs: 150466, 15039581504041

3 years agoAnnotate use of buffer initialized by tmpl_print() (CID #1506690) (#4663)
James Jones [Thu, 11 Aug 2022 10:31:35 +0000 (05:31 -0500)] 
Annotate use of buffer initialized by tmpl_print() (CID #1506690) (#4663)

3 years agoFix error coverity detected in fr_exec_fork_wait() (CID #1503999) (#4665)
James Jones [Thu, 11 Aug 2022 10:31:06 +0000 (05:31 -0500)] 
Fix error coverity detected in fr_exec_fork_wait() (CID #1503999) (#4665)

stdin_fd's state shouldn't influence stdout_pipe.

3 years agocast values, not copy
Alan T. DeKok [Wed, 10 Aug 2022 13:26:09 +0000 (09:26 -0400)] 
cast values, not copy

which lets the parser return uint8, and then we assign that
value to a uint32 attribute.

3 years agohandle more data types than just attributes and strings
Alan T. DeKok [Wed, 10 Aug 2022 13:24:10 +0000 (09:24 -0400)] 
handle more data types than just attributes and strings

3 years agosimplifications
Alan T. DeKok [Tue, 9 Aug 2022 20:33:09 +0000 (16:33 -0400)] 
simplifications

3 years agoStop fr_dcursor_next() advancing before calling iterator (#4660)
Nick Porter [Wed, 10 Aug 2022 11:20:54 +0000 (12:20 +0100)] 
Stop fr_dcursor_next() advancing before calling iterator (#4660)

3 years agoAnnotate uses of buffers that really are initialized (CIDs listed below) (#4659)
James Jones [Tue, 9 Aug 2022 22:46:32 +0000 (17:46 -0500)] 
Annotate uses of buffers that really are initialized (CIDs listed below) (#4659)

Declaring a local buffer and passing the address of a temporary
sbuff created to use it is a common idiom, but coverity doesn't
recognize when the functions called always put something in the
buffer, if only a NUL terminator. We therefore annotate the first
use of such buffers.

CIDs affected:
15039181503925,153930, 1503945150396615040191504053,
1504067

3 years agoCorrect check for no extension in check_library_exists() (#4655)
James Jones [Tue, 9 Aug 2022 22:28:07 +0000 (17:28 -0500)] 
Correct check for no extension in check_library_exists() (#4655)

If libdircheck is true, add_dotlibs() will put .lib/ at the
start of newarg so that ext will never be NULL.

3 years agoMake memmove() copy terminating NUL in add_dotlibs() (#4656)
James Jones [Tue, 9 Aug 2022 22:27:52 +0000 (17:27 -0500)] 
Make memmove() copy terminating NUL in add_dotlibs() (#4656)

To end up with buffer holding a proper NUL-terminated
string in the common cases, memmove() must move the
name string and its terminating NUL. This may be the
cause underlying CID #1504058, so that it won't need
an annotation...or not.

3 years agoquiet clang scan
Alan T. DeKok [Tue, 9 Aug 2022 18:14:14 +0000 (14:14 -0400)] 
quiet clang scan

3 years agocleanups and comments
Alan T. DeKok [Tue, 9 Aug 2022 17:05:35 +0000 (13:05 -0400)] 
cleanups and comments

3 years agoallow &request -= "Tmp-String-0 == 'foo'"
Alan T. DeKok [Tue, 9 Aug 2022 16:35:23 +0000 (12:35 -0400)] 
allow &request -= "Tmp-String-0 == 'foo'"

for getting rid of pairs via things like SQL queries

3 years agominor cleanups, and allow &Foo += Bar[*]
Alan T. DeKok [Tue, 9 Aug 2022 15:24:33 +0000 (11:24 -0400)] 
minor cleanups, and allow &Foo += Bar[*]

3 years agoallow operations on groups (i.e. lists)
Alan T. DeKok [Tue, 9 Aug 2022 14:47:08 +0000 (10:47 -0400)] 
allow operations on groups (i.e. lists)

so foo += { 1, 3, 4 } will add "8" to the result

3 years agominor cleanups
Alan T. DeKok [Tue, 9 Aug 2022 11:41:51 +0000 (07:41 -0400)] 
minor cleanups

3 years agoUse default-libmysqlclient-dev first - will align with OS defaults
Nick Porter [Tue, 9 Aug 2022 09:39:30 +0000 (10:39 +0100)] 
Use default-libmysqlclient-dev first - will align with OS defaults

3 years agoSuppress GCC unknown pragma warnings
Nick Porter [Tue, 9 Aug 2022 10:08:23 +0000 (11:08 +0100)] 
Suppress GCC unknown pragma warnings

3 years agoAdd module tests to launch.json
Nick Porter [Mon, 1 Aug 2022 09:37:53 +0000 (10:37 +0100)] 
Add module tests to launch.json

3 years agoAdd bin tests to launch.lson
Nick Porter [Mon, 1 Aug 2022 09:27:10 +0000 (10:27 +0100)] 
Add bin tests to launch.lson

3 years agoAdd keyword tests to launch.json
Nick Porter [Mon, 1 Aug 2022 08:58:51 +0000 (09:58 +0100)] 
Add keyword tests to launch.json

3 years agoadd and use tmpl_rules_child_init()
Alan T. DeKok [Sun, 7 Aug 2022 20:44:34 +0000 (16:44 -0400)] 
add and use tmpl_rules_child_init()

which initializes a tmpl_rules_t from a parent tmpl_rules_t, and
a tmpl_t which is a structural attribute.  We want to be able to
parse child attributes in the context of the parent.  So that
the user doesn't have to specify the entire list

3 years agoensure that the list && list_def are set correctly
Alan T. DeKok [Mon, 8 Aug 2022 14:07:45 +0000 (10:07 -0400)] 
ensure that the list && list_def are set correctly

so that when we look at them later, they're consistent with
the attribute references in the tmpl

3 years agomore "convert to edit"
Alan T. DeKok [Sun, 7 Aug 2022 18:34:53 +0000 (14:34 -0400)] 
more "convert to edit"

3 years agotypos
Alan T. DeKok [Sun, 7 Aug 2022 18:34:30 +0000 (14:34 -0400)] 
typos

3 years agouse outstanding as per #4654
Alan T. DeKok [Sun, 7 Aug 2022 18:10:53 +0000 (14:10 -0400)] 
use outstanding as per #4654

future work is a better predictor of load than past work.

If two workers have the same number of outstanding packets, then
choose one with less CPU time

3 years agoupdate cpu_time as noted in #4654
Alan T. DeKok [Sat, 6 Aug 2022 14:59:52 +0000 (10:59 -0400)] 
update cpu_time as noted in #4654

3 years agoReplace v3.0 with v3.2 in docs where appropriate
Nick Porter [Mon, 8 Aug 2022 16:50:20 +0000 (17:50 +0100)] 
Replace v3.0 with v3.2 in docs where appropriate

3 years agoCorrect spelling of tmpl_dcursor_clear
Nick Porter [Mon, 8 Aug 2022 09:49:13 +0000 (10:49 +0100)] 
Correct spelling of tmpl_dcursor_clear

3 years agoAnnotate false positives of using uninitalized variables (CIDs below) (#4653)
James Jones [Sat, 6 Aug 2022 15:20:45 +0000 (10:20 -0500)] 
Annotate false positives of using uninitalized variables (CIDs below) (#4653)

CIDs: #1503917, #1503948, #1503959, #1503989

After the smoke clears, it turns out that (a == &one) is true
iff one was initialized and (b == &two) is true iff two was
initialized, so they're passed to fr_value_box_clear_value()
iff it makes sense.

3 years agorevert until we address ubsan issues
Alan T. DeKok [Fri, 5 Aug 2022 15:04:27 +0000 (11:04 -0400)] 
revert until we address ubsan issues

3 years agomore "convert to edit"
Alan T. DeKok [Fri, 5 Aug 2022 14:12:12 +0000 (10:12 -0400)] 
more "convert to edit"

3 years agoauto-merge edits only if explicitely put into a group
Alan T. DeKok [Fri, 5 Aug 2022 13:29:40 +0000 (09:29 -0400)] 
auto-merge edits only if explicitely put into a group

3 years agodon't allow "foo.bar = baz" to become a subsection in attr definition
Alan T. DeKok [Fri, 5 Aug 2022 13:11:52 +0000 (09:11 -0400)] 
don't allow "foo.bar = baz" to become a subsection in attr definition

3 years agobetter errors
Alan T. DeKok [Fri, 5 Aug 2022 13:04:38 +0000 (09:04 -0400)] 
better errors

foo.bar = baz

results in the config file parser creating

foo {
bar = baz
}

We should likely forbid that in the parser.  But for now, a better
error here is useful

3 years agomore "convert to edit"
Alan T. DeKok [Thu, 4 Aug 2022 22:55:05 +0000 (18:55 -0400)] 
more "convert to edit"

3 years agothese don't need to be run every time
Alan T. DeKok [Thu, 4 Aug 2022 22:46:02 +0000 (18:46 -0400)] 
these don't need to be run every time

3 years agomore "convert to use new edits"
Alan T. DeKok [Thu, 4 Aug 2022 20:19:16 +0000 (16:19 -0400)] 
more "convert to use new edits"

including removing more %{expr:...}, and just using in-place
additions for load-balance.

3 years agouse tmpl_dcursors to remove attributes from a list.
Alan T. DeKok [Tue, 2 Aug 2022 13:24:33 +0000 (09:24 -0400)] 
use tmpl_dcursors to remove attributes from a list.

For now the entire RHS has to be specified in full, despite other
attempts to fix it.

3 years agoallow for NULL RHS rules when parsing CONF_PAIR
Alan T. DeKok [Tue, 2 Aug 2022 13:23:12 +0000 (09:23 -0400)] 
allow for NULL RHS rules when parsing CONF_PAIR

in which case it tries to figure out the context of the RHS
from the LHS.  Since the caller has no idea what the LHS is, the
caller can't set the correct context.

This functionality is needed for things like TLVs and structs,
where the RHS must be contained within the LHS.

3 years agodeprecate filter documentation
Alan T. DeKok [Mon, 1 Aug 2022 12:03:34 +0000 (08:03 -0400)] 
deprecate filter documentation

3 years agonote operators for removing attributes from a list
Alan T. DeKok [Mon, 1 Aug 2022 12:03:18 +0000 (08:03 -0400)] 
note operators for removing attributes from a list

3 years agoremove all matching attributes.
Alan T. DeKok [Mon, 1 Aug 2022 11:03:33 +0000 (07:03 -0400)] 
remove all matching attributes.

Which takes more time, but...

3 years agoAnnotate false positive alloc_strlen issues (CIDs listed below) (#4648)
James Jones [Thu, 4 Aug 2022 15:44:52 +0000 (10:44 -0500)] 
Annotate false positive alloc_strlen issues (CIDs listed below) (#4648)

15039221503986
         Honest, you don't want the NUL terminator in the
         FILE open_buffer_as_file() (or more accurately,
         fmemopen()) creates.
1503983
         curl_escape() call; if you pass 0 for length, the
         function itself will call strlen() to determine length.

3 years agoEnsure tmpl cursor is cleared on failure
Nick Porter [Tue, 2 Aug 2022 15:18:25 +0000 (16:18 +0100)] 
Ensure tmpl cursor is cleared on failure

3 years agoFree tmpl_dcursor children in the correct order
Nick Porter [Thu, 4 Aug 2022 09:44:48 +0000 (10:44 +0100)] 
Free tmpl_dcursor children in the correct order

3 years agoAdd tests for tmpl_dcursors
Nick Porter [Wed, 3 Aug 2022 18:25:53 +0000 (19:25 +0100)] 
Add tests for tmpl_dcursors

3 years agoAdd deeper nested attributes to test dictionary
Nick Porter [Wed, 3 Aug 2022 18:24:57 +0000 (19:24 +0100)] 
Add deeper nested attributes to test dictionary

3 years agoPlacate coverity by checking for a null pointer (CID #1504605) (#4644)
James Jones [Wed, 3 Aug 2022 13:46:51 +0000 (08:46 -0500)] 
Placate coverity by checking for a null pointer (CID #1504605) (#4644)

3 years agoAnnotate dead code false positive (CID #1504072) (#4646)
James Jones [Wed, 3 Aug 2022 13:46:14 +0000 (08:46 -0500)] 
Annotate dead code false positive (CID #1504072) (#4646)

Coverity doesn't see that a successful call to fr_base16_decode()
in fr_ldap_util_normalise_dn(), c will be set. Unfortunately, it
appears that each of the ten cases of the switch statement
checking for an escape sequence (other than \\) would then require
annotation.

We therefore use an array of bool const so the check for a valid
escape sequence happens in one line, needing only one annotation.
(Having done this, one might as well use it in fr_ldap_util_is_dn(),
and that is indeed done.)

3 years agoCorrect position and spelling of annotation (CID #1504462) (#4647)
James Jones [Wed, 3 Aug 2022 13:44:45 +0000 (08:44 -0500)] 
Correct position and spelling of annotation (CID #1504462) (#4647)

3 years agoAnnotate false positive in fr_dbuff_init() (CIDs listed below) (#4643)
James Jones [Wed, 3 Aug 2022 13:44:14 +0000 (08:44 -0500)] 
Annotate false positive in fr_dbuff_init() (CIDs listed below) (#4643)

The end pointer is set to point just past the space given to it.
This is legal in C, and is only compared with, not dereferenced.

CIDs affected:
1503895150390515039071503914150391515039241503956,
1503970150397315039791503980150398815040001504034,
15040351504039150404015040461504059

3 years agoAnnotate false positive in fr_dict_attr_verify() (CID #1504052) (#4642)
James Jones [Wed, 3 Aug 2022 13:43:58 +0000 (08:43 -0500)] 
Annotate false positive in fr_dict_attr_verify() (CID #1504052) (#4642)

The preceding fr_assert_msg() should keep attributes without
namespaces from reaching the dict_attr_namespace() call, so it
should never return NULL... but coverity doesn't know that.

3 years agoAnnotate false positive reverse negative (CID #720487) (#4641)
James Jones [Wed, 3 Aug 2022 13:43:44 +0000 (08:43 -0500)] 
Annotate false positive reverse negative (CID #720487) (#4641)

coverity flags the check whether there are commands to run
with the comment "You might be using variable num_commands
before verifying that it is >=0."

3 years agoCorrect connection_deferred_signal_process() annotation (CID #1469149) (#4640)
James Jones [Wed, 3 Aug 2022 13:43:20 +0000 (08:43 -0500)] 
Correct connection_deferred_signal_process() annotation (CID #1469149) (#4640)

3 years agoCorrect annotation typo in SBUFF_PARSE_FLOAT_DEF (CID #1503942) (#4639)
James Jones [Wed, 3 Aug 2022 13:42:58 +0000 (08:42 -0500)] 
Correct annotation typo in SBUFF_PARSE_FLOAT_DEF (CID #1503942) (#4639)

3 years agomissing_lock, not missing_unlock (CID #1414431) (#4635)
James Jones [Wed, 3 Aug 2022 13:42:47 +0000 (08:42 -0500)] 
missing_lock, not missing_unlock (CID #1414431) (#4635)

Typo in coverity annotation. Unnecessary missing_lock annotations
have been removed.

3 years agoAnnotate false positive (CID #1506689) (#4630)
James Jones [Wed, 3 Aug 2022 13:42:06 +0000 (08:42 -0500)] 
Annotate false positive (CID #1506689) (#4630)

fr_redis_tuple_from_map() does check for error return from
tmpl_print(), so by the time talloc_bstrndup() is called,
key_buf should be initialized.

3 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Wed, 3 Aug 2022 09:58:12 +0000 (09:58 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar

3 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Wed, 3 Aug 2022 09:58:10 +0000 (09:58 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar

3 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Wed, 3 Aug 2022 09:58:07 +0000 (09:58 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar

3 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Wed, 3 Aug 2022 09:58:03 +0000 (09:58 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar

3 years agoScheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Wed, 3 Aug 2022 09:58:01 +0000 (09:58 +0000)] 
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar