]>
git.ipfire.org Git - thirdparty/freeradius-server.git/log
Alan T. DeKok [Mon, 11 Nov 2019 17:06:51 +0000 (12:06 -0500)]
check before dereferencing
Alan T. DeKok [Mon, 11 Nov 2019 17:04:57 +0000 (12:04 -0500)]
use correct variable in loop
Alan T. DeKok [Mon, 11 Nov 2019 17:01:44 +0000 (12:01 -0500)]
move assert to before check
Alan T. DeKok [Mon, 11 Nov 2019 17:00:44 +0000 (12:00 -0500)]
initialize array
Alan T. DeKok [Mon, 11 Nov 2019 16:59:31 +0000 (11:59 -0500)]
we're doing parsing, and don't care about the values
Alan T. DeKok [Mon, 11 Nov 2019 16:57:51 +0000 (11:57 -0500)]
rearrange condition checks
Alan T. DeKok [Mon, 11 Nov 2019 16:52:54 +0000 (11:52 -0500)]
swap order of checks.
Alan T. DeKok [Mon, 11 Nov 2019 16:47:28 +0000 (11:47 -0500)]
cleanups and removing unused assignments
Alan T. DeKok [Mon, 11 Nov 2019 16:33:47 +0000 (11:33 -0500)]
make process_template() take stack
Alan T. DeKok [Mon, 11 Nov 2019 16:28:57 +0000 (11:28 -0500)]
make process_if() take stack pointer
Alan T. DeKok [Mon, 11 Nov 2019 16:23:46 +0000 (11:23 -0500)]
make process_map() use the stack instead of arbitrary arguments
Alan T. DeKok [Mon, 11 Nov 2019 16:18:10 +0000 (11:18 -0500)]
restructure code
so that the parser is now in it's own function. Next steps are to
split the parsing further into pieces
Alan T. DeKok [Mon, 11 Nov 2019 13:52:36 +0000 (08:52 -0500)]
rearrange code in preparation for parser updates
Alan T. DeKok [Mon, 11 Nov 2019 13:26:53 +0000 (08:26 -0500)]
add error messages to dhcpv6_verify()
Alan T. DeKok [Sun, 10 Nov 2019 22:50:17 +0000 (17:50 -0500)]
correct syntax of NAIRealm.
OpenSSL is "interesting"
Alan T. DeKok [Sun, 10 Nov 2019 22:19:49 +0000 (17:19 -0500)]
we don't have a real encoder / decoder for ethernet
the entire API has changed, as the old one didn't really work.
So until we redo the ethernet test points, we'll just comment them out
Alan T. DeKok [Sun, 10 Nov 2019 22:16:44 +0000 (17:16 -0500)]
add example of RFC 7585 NAIRealm
Alan T. DeKok [Sun, 10 Nov 2019 21:29:44 +0000 (16:29 -0500)]
add encoder and test cases
Alan T. DeKok [Sun, 10 Nov 2019 21:29:24 +0000 (16:29 -0500)]
minor cleanups
Alan T. DeKok [Sun, 10 Nov 2019 21:28:36 +0000 (16:28 -0500)]
fixed encoder / decoder
- packet type is uint32 internally, but is only 1 byte in
the packet
- encoder stops when it runs out of VPs to encode
Alan T. DeKok [Sat, 9 Nov 2019 20:44:44 +0000 (15:44 -0500)]
notes on ASAN and LSAN
Alan T. DeKok [Sat, 9 Nov 2019 20:43:44 +0000 (15:43 -0500)]
wrapper script for fuzzing the server
Alan T. DeKok [Sat, 9 Nov 2019 19:50:15 +0000 (14:50 -0500)]
call pair_list_free on error. Closes #3113
Alan T. DeKok [Sat, 9 Nov 2019 17:40:10 +0000 (12:40 -0500)]
we need a tmp_ctx
accidentally deleted in earlier commits
Alan T. DeKok [Sat, 9 Nov 2019 16:35:49 +0000 (11:35 -0500)]
add command_decode_proto
Alan T. DeKok [Sat, 9 Nov 2019 16:35:22 +0000 (11:35 -0500)]
decoder now adds packet type and auth vector to output VPs
Alan T. DeKok [Sat, 9 Nov 2019 14:30:37 +0000 (09:30 -0500)]
change test point decode proto function signature
to return the VPs which were decoded
Alan T. DeKok [Sat, 9 Nov 2019 14:08:34 +0000 (09:08 -0500)]
rename "tp_encode" to "tp_encode_pair"
in preparation for adding encode/decode of protos
Alan T. DeKok [Sat, 9 Nov 2019 01:17:18 +0000 (20:17 -0500)]
minor cleanups
Alan T. DeKok [Sat, 9 Nov 2019 01:14:51 +0000 (20:14 -0500)]
add ASCII art with packet format
Alan T. DeKok [Sat, 9 Nov 2019 01:13:31 +0000 (20:13 -0500)]
add fr_dhcpv6_encode()
Jorge Pereira [Thu, 7 Nov 2019 21:18:40 +0000 (18:18 -0300)]
Allow more verbose (#3107)
perl -p -i -e 's/\t\@/\t\${Q}/' $(find . -name "all.mk" -print)
Jorge Pereira [Thu, 7 Nov 2019 19:29:25 +0000 (16:29 -0300)]
Update the global pool here
Completing the commit
51ac6d9cd9fa1b3e15bca4aaa22834e5d44a7972
Alan T. DeKok [Thu, 7 Nov 2019 20:08:13 +0000 (15:08 -0500)]
move EAP-AKA-SIM magic to the protocol library
Alan T. DeKok [Thu, 7 Nov 2019 20:04:24 +0000 (15:04 -0500)]
move dhcpv6 magic to dhcpv6 library
Arran Cudbard-Bell [Thu, 7 Nov 2019 18:47:53 +0000 (12:47 -0600)]
Update cutest framework
Arran Cudbard-Bell [Thu, 7 Nov 2019 18:39:00 +0000 (12:39 -0600)]
Disable lsan suppressions text by default so that it doesn't interfere with text from utilities closes #3110
Alan T. DeKok [Thu, 7 Nov 2019 17:17:02 +0000 (12:17 -0500)]
VENDOR attributes are TLVs, too
Arran Cudbard-Bell [Thu, 7 Nov 2019 16:53:37 +0000 (10:53 -0600)]
Set gctx before destructor
Arran Cudbard-Bell [Thu, 7 Nov 2019 16:47:15 +0000 (10:47 -0600)]
Don't need suppressions set
Alan T. DeKok [Thu, 7 Nov 2019 16:44:10 +0000 (11:44 -0500)]
add child_ctx struct and functions
so that when we initialize multiple siblings, they can be freed
in reverse order. This process helps to ensure dependencies
and order are managed correctly
Alan T. DeKok [Thu, 7 Nov 2019 16:41:09 +0000 (11:41 -0500)]
decode TLVs, too
Alan T. DeKok [Thu, 7 Nov 2019 16:29:02 +0000 (11:29 -0500)]
the decoder doesn't do TLVs yet.
Jorge Pereira [Thu, 7 Nov 2019 15:34:08 +0000 (12:34 -0300)]
Add tests for DHCPv6 / rfc6939 (#3098)
* The 'Client-Link-Layer' should be a 'struct'
* Add tests for DHCPv6 / rfc6939
Jorge Pereira [Thu, 7 Nov 2019 15:23:29 +0000 (12:23 -0300)]
Add 'decode-pair' for dhcpv6 unit tests (#3104)
Arran Cudbard-Bell [Thu, 7 Nov 2019 15:04:33 +0000 (09:04 -0600)]
Explicitly free temporary tmpl Closes #3109
Jorge Pereira [Thu, 7 Nov 2019 15:02:37 +0000 (12:02 -0300)]
Don't leak memory in json_pair_alloc_leaf (#3108)
* Don't free NULL pointer
* Don't leak memory in json_pair_alloc_leaf
Arran Cudbard-Bell [Thu, 7 Nov 2019 14:59:52 +0000 (08:59 -0600)]
Whitespace
Arran Cudbard-Bell [Thu, 7 Nov 2019 14:35:57 +0000 (08:35 -0600)]
Mark dictionaries as read only *before* mprotecting the global pool
Arran Cudbard-Bell [Thu, 7 Nov 2019 14:21:11 +0000 (08:21 -0600)]
Clarify what needs to be correct
Arran Cudbard-Bell [Thu, 7 Nov 2019 14:14:30 +0000 (08:14 -0600)]
re-enable autofree, and add sanity checks to dict gctx
to prevent it being freed if dictionaries are still loaded
Arran Cudbard-Bell [Wed, 6 Nov 2019 23:49:37 +0000 (17:49 -0600)]
Add gctx to dict struct
Arran Cudbard-Bell [Wed, 6 Nov 2019 23:29:58 +0000 (17:29 -0600)]
Fixup dict free functions to work in the gctx the dictionary was allocated
Fixup unit_test_attribute to allocate test dictionaries in a different gctx
Arran Cudbard-Bell [Wed, 6 Nov 2019 23:27:38 +0000 (17:27 -0600)]
Use talloc_get_type_abort_const
Alan T. DeKok [Wed, 6 Nov 2019 22:21:24 +0000 (17:21 -0500)]
we need more memory in the default global pool.
It would be nice if the functions would check for OOM in the
global pool and return a descriptive error.
Alan T. DeKok [Wed, 6 Nov 2019 22:20:37 +0000 (17:20 -0500)]
check for OOM errors
Alan T. DeKok [Wed, 6 Nov 2019 17:28:40 +0000 (12:28 -0500)]
check limit before dereferencing it
Alan T. DeKok [Wed, 6 Nov 2019 17:26:01 +0000 (12:26 -0500)]
error out on memory allocation failures
Alan T. DeKok [Wed, 6 Nov 2019 17:24:34 +0000 (12:24 -0500)]
shut up PVS studio
Alan T. DeKok [Wed, 6 Nov 2019 17:22:14 +0000 (12:22 -0500)]
check for memory allocation failures
Alan T. DeKok [Wed, 6 Nov 2019 17:21:18 +0000 (12:21 -0500)]
move assert to before dereference of variable
Jorge Pereira [Wed, 6 Nov 2019 21:27:36 +0000 (18:27 -0300)]
Typo (#3106)
Arran Cudbard-Bell [Wed, 6 Nov 2019 20:27:58 +0000 (14:27 -0600)]
Move to a read only "config" struct in unit_test_attribute
Arran Cudbard-Bell [Wed, 6 Nov 2019 20:08:16 +0000 (14:08 -0600)]
Stupid const issues
This reverts commit
dd6375099cb27af6af99fe6fa6d45652a552759a .
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:43:37 +0000 (13:43 -0600)]
Here too.
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:42:48 +0000 (13:42 -0600)]
NULLify pointers on dl_free
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:38:22 +0000 (13:38 -0600)]
Free dictionaries later
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:14:29 +0000 (13:14 -0600)]
Return how many references remain when freeing dictionaries
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:07:00 +0000 (13:07 -0600)]
Be nicer about NULL pointers in dl_free
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:05:34 +0000 (13:05 -0600)]
More grr...
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:03:57 +0000 (13:03 -0600)]
Grr...
Arran Cudbard-Bell [Wed, 6 Nov 2019 19:00:50 +0000 (13:00 -0600)]
Typo
Arran Cudbard-Bell [Wed, 6 Nov 2019 18:59:46 +0000 (12:59 -0600)]
Make talloc_const_free return an error code
Make talloc_decrease_ref_count return the number of remaining references.
Add explicit dl_free function.
Arran Cudbard-Bell [Wed, 6 Nov 2019 18:29:58 +0000 (12:29 -0600)]
Fix more return points in fr_dict_global_init
Jorge Pereira [Wed, 6 Nov 2019 17:58:51 +0000 (14:58 -0300)]
Typo
Arran Cudbard-Bell [Wed, 6 Nov 2019 17:51:33 +0000 (11:51 -0600)]
Fix return code check
Arran Cudbard-Bell [Wed, 6 Nov 2019 17:29:06 +0000 (11:29 -0600)]
Return a handle to the global dictionary context
Alan T. DeKok [Wed, 6 Nov 2019 17:14:24 +0000 (12:14 -0500)]
convert bit test to truth test
Arran Cudbard-Bell [Wed, 6 Nov 2019 17:09:15 +0000 (11:09 -0600)]
Switch to compile time check for ASAN
Arran Cudbard-Bell [Wed, 6 Nov 2019 16:59:51 +0000 (10:59 -0600)]
Fix invalid check
Arran Cudbard-Bell [Wed, 6 Nov 2019 16:12:42 +0000 (10:12 -0600)]
Remove unused function
Arran Cudbard-Bell [Wed, 6 Nov 2019 15:50:54 +0000 (09:50 -0600)]
Remove some instances of fr_hash_table_walk
Alan T. DeKok [Wed, 6 Nov 2019 15:21:17 +0000 (10:21 -0500)]
unload dl's, too.
Alan T. DeKok [Wed, 6 Nov 2019 15:16:33 +0000 (10:16 -0500)]
free "autofree" context manually
there seems to be issues with calling it automatically via
atexit()
Alan T. DeKok [Wed, 6 Nov 2019 15:11:48 +0000 (10:11 -0500)]
set gctx to NULL and check it in more places
Alan T. DeKok [Wed, 6 Nov 2019 13:44:27 +0000 (08:44 -0500)]
set gctx to NULL on free
Arran Cudbard-Bell [Wed, 6 Nov 2019 13:11:14 +0000 (07:11 -0600)]
Revert "Use _r variant of basename and dirname"
This reverts commit
22599fd332eb13f82923f3401a1780370ac12532 .
Arran Cudbard-Bell [Wed, 6 Nov 2019 12:51:35 +0000 (06:51 -0600)]
Use _r variant of basename and dirname
Alan T. DeKok [Wed, 6 Nov 2019 12:44:42 +0000 (07:44 -0500)]
don't use dirname() or basename(). They are NOT safe.
Jorge Pereira [Tue, 5 Nov 2019 23:23:16 +0000 (20:23 -0300)]
Helpful to print the fullpath of unit test (#3103)
Arran Cudbard-Bell [Tue, 5 Nov 2019 22:50:10 +0000 (16:50 -0600)]
log_dir not logdir
Arran Cudbard-Bell [Tue, 5 Nov 2019 22:49:04 +0000 (16:49 -0600)]
More fixes...
Alan T. DeKok [Tue, 5 Nov 2019 22:34:06 +0000 (17:34 -0500)]
allow decode of zero-length strings
Arran Cudbard-Bell [Tue, 5 Nov 2019 22:34:49 +0000 (16:34 -0600)]
Include missing header
Arran Cudbard-Bell [Tue, 5 Nov 2019 22:24:58 +0000 (16:24 -0600)]
Remove rad_mkdir, and the _file from the fr_file functions
Arran Cudbard-Bell [Tue, 5 Nov 2019 22:03:32 +0000 (16:03 -0600)]
Use name not argv[0]
Alan T. DeKok [Tue, 5 Nov 2019 22:03:11 +0000 (17:03 -0500)]
use TESTBIN which has all of the magic necessary for jlibtool
Alan T. DeKok [Tue, 5 Nov 2019 21:55:29 +0000 (16:55 -0500)]
get rid of stupid "error 0"
Arran Cudbard-Bell [Tue, 5 Nov 2019 20:55:29 +0000 (14:55 -0600)]
We only get "waking up" messages at DEBUG4
Arran Cudbard-Bell [Tue, 5 Nov 2019 20:45:30 +0000 (14:45 -0600)]
Print what we failed to open