]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Terry Burton [Tue, 7 Dec 2021 22:53:33 +0000 (22:53 +0000)]
Scheduled fuzzing: Cache merged corpus; push back only after 30 days (#4328)
* Scheduled fuzzing: Cache merged corpus; push back only after 30 days
* Scheduled fuzzing: Skip lfs checkout - default assets are unused
* Scheduled fuzzing: Only push back when running for the main repo
Alan T. DeKok [Tue, 7 Dec 2021 20:44:36 +0000 (15:44 -0500)]
try to shut up compiler
Alan T. DeKok [Tue, 7 Dec 2021 20:43:52 +0000 (15:43 -0500)]
shut up stupid compiler
Alan T. DeKok [Tue, 7 Dec 2021 20:01:36 +0000 (15:01 -0500)]
minor cleanups
Alan T. DeKok [Tue, 7 Dec 2021 19:40:56 +0000 (14:40 -0500)]
helps to set the result
Alan T. DeKok [Tue, 7 Dec 2021 17:48:39 +0000 (12:48 -0500)]
use correct field
Alan T. DeKok [Tue, 7 Dec 2021 16:43:50 +0000 (11:43 -0500)]
handle list to list edit operations
and add primitive tests. We probably want many more tests, too
Alan T. DeKok [Tue, 7 Dec 2021 17:13:17 +0000 (12:13 -0500)]
allow new operators, too
Alan T. DeKok [Tue, 7 Dec 2021 16:43:39 +0000 (11:43 -0500)]
handle end of list conditions, too, and other fixes
Alan T. DeKok [Tue, 7 Dec 2021 16:41:52 +0000 (11:41 -0500)]
typo
Alan T. DeKok [Tue, 7 Dec 2021 16:29:57 +0000 (11:29 -0500)]
allow "make test.keywords.foo" to run a particular test
Alan T. DeKok [Mon, 6 Dec 2021 21:23:09 +0000 (16:23 -0500)]
use an intermediate box, so "dst" does not have to be initialized
Alan T. DeKok [Mon, 6 Dec 2021 21:12:53 +0000 (16:12 -0500)]
add fr_dict_attr_compatible
for list to list copies. Does the copy make sense?
Alan T. DeKok [Mon, 6 Dec 2021 20:24:16 +0000 (15:24 -0500)]
catch stupidities.
A ^= A is wrong
A .= A is wrong
A UNION A --> A
A MERGE A --> A
A := A --> A
Alan T. DeKok [Mon, 6 Dec 2021 19:11:23 +0000 (14:11 -0500)]
type "group" can only point to TLVs
so not struct, not other groups, and not leaf types
and reorder checks so that they match the existing order in
dict_fixup.c
Alan T. DeKok [Mon, 6 Dec 2021 18:25:55 +0000 (13:25 -0500)]
can't do UNION on structs
Alan T. DeKok [Mon, 6 Dec 2021 17:27:16 +0000 (12:27 -0500)]
add t_rules flag "list_as_attr"
which encodes the list in the tmpl attribute reference structure
@todo - if there's no list prefix AND the flag is set, the
tokenizer should statically determine the list prefix, and set
the correct attribute reference. This would prevent those checks
being done at run-time in tmpl_pair_cursor_init()
Alan T. DeKok [Sun, 5 Dec 2021 20:34:31 +0000 (15:34 -0500)]
rework list assignment, and add UNION and MERGE
Alan T. DeKok [Sun, 5 Dec 2021 20:33:22 +0000 (15:33 -0500)]
support "&=" and "|="
Alan T. DeKok [Sun, 5 Dec 2021 20:30:56 +0000 (15:30 -0500)]
add function which does binary operations on lists
Alan T. DeKok [Sun, 5 Dec 2021 20:06:55 +0000 (15:06 -0500)]
add "&=" and "|="
Alan T. DeKok [Sun, 5 Dec 2021 19:34:51 +0000 (14:34 -0500)]
these functions can no longer return negative numbers
github-actions[bot] [Tue, 7 Dec 2021 09:34:34 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Tue, 7 Dec 2021 09:34:31 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Tue, 7 Dec 2021 09:34:28 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Tue, 7 Dec 2021 09:34:25 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Tue, 7 Dec 2021 09:34:22 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Tue, 7 Dec 2021 09:34:19 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Tue, 7 Dec 2021 09:34:16 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Tue, 7 Dec 2021 09:34:13 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
Arran Cudbard-Bell [Tue, 7 Dec 2021 03:35:45 +0000 (22:35 -0500)]
Just move the result...
Arran Cudbard-Bell [Tue, 7 Dec 2021 03:23:02 +0000 (22:23 -0500)]
Fix JSON 64bit integer tests
Arran Cudbard-Bell [Tue, 7 Dec 2021 02:51:11 +0000 (21:51 -0500)]
Fix json taint test
Arran Cudbard-Bell [Tue, 7 Dec 2021 02:16:38 +0000 (21:16 -0500)]
Quiet GCC
github-actions[bot] [Mon, 6 Dec 2021 09:34:54 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Mon, 6 Dec 2021 09:34:52 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Mon, 6 Dec 2021 09:34:49 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Mon, 6 Dec 2021 09:34:45 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Mon, 6 Dec 2021 09:34:43 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Mon, 6 Dec 2021 09:34:40 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Mon, 6 Dec 2021 09:34:36 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Mon, 6 Dec 2021 09:34:34 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
Arran Cudbard-Bell [Sun, 5 Dec 2021 15:13:42 +0000 (10:13 -0500)]
Revert "Use the allocation functions to allocate buffers in cal.c instead of doing it manually"
This reverts commit
0f677c5ff474e88942bf25b49aafd5b97bcdfea4 .
Arran Cudbard-Bell [Sun, 5 Dec 2021 05:49:04 +0000 (00:49 -0500)]
Use the allocation functions to allocate buffers in cal.c instead of doing it manually
Alan T. DeKok [Sun, 5 Dec 2021 14:32:23 +0000 (09:32 -0500)]
more / better compile-time casting
Alan T. DeKok [Sun, 5 Dec 2021 14:09:43 +0000 (09:09 -0500)]
suppress spurious messages
Alan T. DeKok [Sun, 5 Dec 2021 13:40:49 +0000 (08:40 -0500)]
shut up clang
Alan T. DeKok [Sun, 5 Dec 2021 13:39:59 +0000 (08:39 -0500)]
run only if there's regex enabled
Alan T. DeKok [Sun, 5 Dec 2021 13:03:48 +0000 (08:03 -0500)]
failed xlat / exec strings are empty strings
which allows
if ("${failed:...}" != "")
to pass. We also note that
if ("${failed:...}")
will also return true/false based on the exit status of the
xlat
github-actions[bot] [Sun, 5 Dec 2021 09:34:49 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Sun, 5 Dec 2021 09:34:40 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Sun, 5 Dec 2021 09:34:37 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
github-actions[bot] [Sun, 5 Dec 2021 09:34:34 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Sun, 5 Dec 2021 09:34:31 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Sun, 5 Dec 2021 09:34:28 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Sun, 5 Dec 2021 09:34:22 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/util.tar
github-actions[bot] [Sun, 5 Dec 2021 09:34:19 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
Arran Cudbard-Bell [Sun, 5 Dec 2021 05:28:28 +0000 (00:28 -0500)]
Typo
Arran Cudbard-Bell [Sun, 5 Dec 2021 05:21:41 +0000 (00:21 -0500)]
Add debug functions for parse rules
Fix quicksort
Arran Cudbard-Bell [Sun, 5 Dec 2021 05:21:04 +0000 (00:21 -0500)]
Match what strcmp would return
Arran Cudbard-Bell [Sun, 5 Dec 2021 03:15:45 +0000 (22:15 -0500)]
Print regex capture groups too
Alan T. DeKok [Sun, 5 Dec 2021 03:02:32 +0000 (22:02 -0500)]
check for existence of string
and update where error messages are located
Alan T. DeKok [Sun, 5 Dec 2021 02:59:37 +0000 (21:59 -0500)]
just test for existence of string
Alan T. DeKok [Sat, 4 Dec 2021 23:45:24 +0000 (18:45 -0500)]
ignore this until we find out why it fails
it passes on OSX / clang. But fails with gcc. And the tests
in src/tests/unit/calc.txt pass with the same input
Alan T. DeKok [Sat, 4 Dec 2021 23:35:33 +0000 (18:35 -0500)]
still perform operations when there's no edit list
Alan T. DeKok [Sat, 4 Dec 2021 23:36:52 +0000 (18:36 -0500)]
add underflow for uint32
Alan T. DeKok [Sat, 4 Dec 2021 20:33:09 +0000 (15:33 -0500)]
check value of second attribute, too
Alan T. DeKok [Sat, 4 Dec 2021 20:28:26 +0000 (15:28 -0500)]
add temporary debug output
Arran Cudbard-Bell [Fri, 3 Dec 2021 14:39:05 +0000 (08:39 -0600)]
Fix xlat escaping for legacy synchronous calls
Arran Cudbard-Bell [Fri, 3 Dec 2021 14:23:51 +0000 (08:23 -0600)]
Fix breaking out of foreach sections
Not entirely sure how this ever worked, but the code is now a lot more explicit, and clears unwind flags properly after reaching a frame that consumes them.
Arran Cudbard-Bell [Thu, 2 Dec 2021 00:16:59 +0000 (18:16 -0600)]
Only apply escape functions to tainted boxes
Arran Cudbard-Bell [Wed, 1 Dec 2021 23:24:24 +0000 (17:24 -0600)]
Remove the old synchronous xlat interpreter
We can just run the new one using a temporary unlang interpreter
Arran Cudbard-Bell [Wed, 1 Dec 2021 23:11:49 +0000 (17:11 -0600)]
Remove legacy xlat function infrastructure
Alan T. DeKok [Sat, 4 Dec 2021 15:51:30 +0000 (10:51 -0500)]
let's see if the passes with gcc
if not, we'll have to find out what's going on, or disable the
relevant tests
Alan T. DeKok [Fri, 3 Dec 2021 20:08:08 +0000 (15:08 -0500)]
add insert pair before function
github-actions[bot] [Sat, 4 Dec 2021 09:34:33 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dns.tar
github-actions[bot] [Sat, 4 Dec 2021 09:34:31 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar
github-actions[bot] [Sat, 4 Dec 2021 09:34:27 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv4.tar
github-actions[bot] [Sat, 4 Dec 2021 09:34:26 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Sat, 4 Dec 2021 09:34:19 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tftp.tar
github-actions[bot] [Sat, 4 Dec 2021 09:34:16 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/vmps.tar
github-actions[bot] [Sat, 4 Dec 2021 09:34:13 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/tacacs.tar
Alan T. DeKok [Fri, 3 Dec 2021 19:00:26 +0000 (14:00 -0500)]
quiet compiler
Alan T. DeKok [Fri, 3 Dec 2021 16:59:59 +0000 (11:59 -0500)]
disable integer64 tests
??? the input json has an array at index 0, but the tests
are trying to parse that as a 64-bit integer, with a large
value ???
Disabled until such time as the test is re-examined.
Alan T. DeKok [Fri, 3 Dec 2021 16:59:19 +0000 (11:59 -0500)]
disable tests until nested group copies work
They should be edited and re-enabled once the new edit sections
are completed
Alan T. DeKok [Fri, 3 Dec 2021 16:34:03 +0000 (11:34 -0500)]
control items are ":=" not "=="
Alan T. DeKok [Fri, 3 Dec 2021 15:49:05 +0000 (10:49 -0500)]
fall through on true, not false
and rework the logic to be clearer, and correct
Alan T. DeKok [Fri, 3 Dec 2021 15:33:23 +0000 (10:33 -0500)]
make "call" run its children again
Alan T. DeKok [Fri, 3 Dec 2021 15:32:12 +0000 (10:32 -0500)]
this doesn't work for now. Removing it to allow CI to pass.
It looks like this hasn't worked for a bit, but the issues with
the conditional evaluator let it pass. Now that the condition
eval is fixed, this test fails.
Alan T. DeKok [Fri, 3 Dec 2021 15:27:20 +0000 (10:27 -0500)]
check for existence, not for value
Alan T. DeKok [Fri, 3 Dec 2021 15:23:18 +0000 (10:23 -0500)]
strings are strings, not integers
Alan T. DeKok [Fri, 3 Dec 2021 15:11:58 +0000 (10:11 -0500)]
things inside of a "parallel" block are children
so that we have to update the parent if we want the results
to be persistent
Alan T. DeKok [Thu, 2 Dec 2021 21:43:25 +0000 (16:43 -0500)]
update conditional evaluator to return true/false
there is no error. "attribute not found" is "not match"
Alan T. DeKok [Thu, 2 Dec 2021 20:03:19 +0000 (15:03 -0500)]
add UNLANG_TYPE_EDIT and tests
for now, expansion failures and overflow/underflow are "noop"
instead of "fail".
Only leaf attributes are handled. And even then only operators
which are not ":=" or "="
Alan T. DeKok [Thu, 2 Dec 2021 19:24:26 +0000 (14:24 -0500)]
update notes
Alan T. DeKok [Thu, 2 Dec 2021 19:24:09 +0000 (14:24 -0500)]
add notes on what to do
Alan T. DeKok [Thu, 2 Dec 2021 18:21:20 +0000 (13:21 -0500)]
remove more $(shell..) by using built-in GNU make functions
Terry Burton [Fri, 3 Dec 2021 13:37:47 +0000 (13:37 +0000)]
Fuzzer corpus pushback: Spread calls to the file_update API to avoid clashes (#4324)
github-actions[bot] [Fri, 3 Dec 2021 09:34:25 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/radius.tar
github-actions[bot] [Fri, 3 Dec 2021 09:34:22 +0000 (09:34 +0000)]
Scheduled fuzzing: Update src/tests/fuzzer-corpus/dhcpv6.tar