]> git.ipfire.org Git - thirdparty/freeradius-server.git/log
thirdparty/freeradius-server.git
4 years agoAdd coverage option
Arran Cudbard-Bell [Tue, 2 Nov 2021 13:36:26 +0000 (09:36 -0400)] 
Add coverage option

4 years agoAdd OSS-Fuzz status badge
Arran Cudbard-Bell [Tue, 2 Nov 2021 13:09:53 +0000 (09:09 -0400)] 
Add OSS-Fuzz status badge

4 years agoFix _fr_sbuff_out_ssize typo (#4300)
James Jones [Tue, 2 Nov 2021 01:35:59 +0000 (20:35 -0500)] 
Fix _fr_sbuff_out_ssize typo (#4300)

4 years agomagic to make fuzzers work
Alan T. DeKok [Mon, 1 Nov 2021 11:52:19 +0000 (07:52 -0400)] 
magic to make fuzzers work

when we have two "main" functions.

4 years agoMore corpus data...
Arran Cudbard-Bell [Sun, 31 Oct 2021 15:23:41 +0000 (11:23 -0400)] 
More corpus data...

4 years agoBetter name
Arran Cudbard-Bell [Sun, 31 Oct 2021 15:13:18 +0000 (11:13 -0400)] 
Better name

4 years agoCombine openat and fchmod
Arran Cudbard-Bell [Sun, 31 Oct 2021 15:11:06 +0000 (11:11 -0400)] 
Combine openat and fchmod

4 years agoMerge new corpus data
Arran Cudbard-Bell [Sun, 31 Oct 2021 15:05:14 +0000 (11:05 -0400)] 
Merge new corpus data

4 years agoCommit merged corpus data
Arran Cudbard-Bell [Sun, 31 Oct 2021 07:15:41 +0000 (03:15 -0400)] 
Commit merged corpus data

4 years agoFix fr_unix_time_from_t crash from clusterfuzz
Arran Cudbard-Bell [Sun, 31 Oct 2021 06:24:48 +0000 (02:24 -0400)] 
Fix fr_unix_time_from_t crash from clusterfuzz

For some reason maximum month value was set to 13, which created a buffer overrun.

4 years agoCommit merged corpus data
Arran Cudbard-Bell [Sun, 31 Oct 2021 05:35:05 +0000 (01:35 -0400)] 
Commit merged corpus data

4 years agoAdd support for producing fuzzer seed corpuses from unit test data
Arran Cudbard-Bell [Sun, 31 Oct 2021 04:53:20 +0000 (00:53 -0400)] 
Add support for producing fuzzer seed corpuses from unit test data

Support changing the fuzzer output dir mid-file

Add test.fuzzer.merge to merge all corpuses

Run the unit tests before scheduled fuzzing

This dumps the latest seed data from the unit tests into the corpus dir

Add fuzzer output dirs to the unit tests

4 years agoUpdate DHCPv4 corpus
Arran Cudbard-Bell [Sun, 31 Oct 2021 04:50:40 +0000 (00:50 -0400)] 
Update DHCPv4 corpus

4 years agoBump LLVM version used for fuzzing
Arran Cudbard-Bell [Sun, 31 Oct 2021 01:11:07 +0000 (21:11 -0400)] 
Bump LLVM version used for fuzzing

4 years agoAlways initialise err
Arran Cudbard-Bell [Sun, 31 Oct 2021 00:18:08 +0000 (20:18 -0400)] 
Always initialise err

4 years agoDisable reverse lookups too
Arran Cudbard-Bell [Sat, 30 Oct 2021 22:10:04 +0000 (18:10 -0400)] 
Disable reverse lookups too

4 years agoJust use the normal intialisation macro...
Arran Cudbard-Bell [Sat, 30 Oct 2021 21:48:23 +0000 (17:48 -0400)] 
Just use the normal intialisation macro...

4 years agoapparently these all need to agree now...
Arran Cudbard-Bell [Sat, 30 Oct 2021 21:45:21 +0000 (17:45 -0400)] 
apparently these all need to agree now...

4 years agoJust suppress the warnings... Stupid stupid GCC
Arran Cudbard-Bell [Sat, 30 Oct 2021 21:42:16 +0000 (17:42 -0400)] 
Just suppress the warnings... Stupid stupid GCC

4 years agoMake definition and declaration agree
Arran Cudbard-Bell [Sat, 30 Oct 2021 21:32:08 +0000 (17:32 -0400)] 
Make definition and declaration agree

4 years agofr_regex_flags_t is a bitfield, not an array.
Arran Cudbard-Bell [Sat, 30 Oct 2021 21:31:01 +0000 (17:31 -0400)] 
fr_regex_flags_t is a bitfield, not an array.

4 years agoRevert "Slightly less hacky way of quieting GCC"
Arran Cudbard-Bell [Sat, 30 Oct 2021 19:07:52 +0000 (15:07 -0400)] 
Revert "Slightly less hacky way of quieting GCC"

This reverts commit ff8869bda0b3f69d2655ccc9e577a2d4c267bc5e.

4 years agoSlightly less hacky way of quieting GCC
Arran Cudbard-Bell [Sat, 30 Oct 2021 19:03:20 +0000 (15:03 -0400)] 
Slightly less hacky way of quieting GCC

4 years agoMore GCC fixes
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:52:50 +0000 (14:52 -0400)] 
More GCC fixes

4 years agoApparently that's not enough
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:45:22 +0000 (14:45 -0400)] 
Apparently that's not enough

4 years agoUse the correct init macro
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:43:55 +0000 (14:43 -0400)] 
Use the correct init macro

4 years agoUnhide dict_eap_aka_sim
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:40:13 +0000 (14:40 -0400)] 
Unhide dict_eap_aka_sim

4 years agoInitialise more buffers
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:39:55 +0000 (14:39 -0400)] 
Initialise more buffers

4 years agoFix other fr_dict_t and fr_dict_attr_t ODR violations
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:32:29 +0000 (14:32 -0400)] 
Fix other fr_dict_t and fr_dict_attr_t ODR violations

4 years agoQuiet gcc?
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:10:50 +0000 (14:10 -0400)] 
Quiet gcc?

4 years agoDon't export attr/dict symbols
Arran Cudbard-Bell [Sat, 30 Oct 2021 18:06:05 +0000 (14:06 -0400)] 
Don't export attr/dict symbols

4 years agoUse different sbuff initialisers for printing and parsing
Arran Cudbard-Bell [Sat, 30 Oct 2021 17:59:40 +0000 (13:59 -0400)] 
Use different sbuff initialisers for printing and parsing

Zero terminate buffers used for printing

4 years agoInit more vars in minmax heap tests
Arran Cudbard-Bell [Sat, 30 Oct 2021 17:58:22 +0000 (13:58 -0400)] 
Init more vars in minmax heap tests

4 years agoBump compiler versions
Arran Cudbard-Bell [Sat, 30 Oct 2021 17:03:42 +0000 (13:03 -0400)] 
Bump compiler versions

4 years agoneed shell script quoting inside of m4 quoting
Alan T. DeKok [Sat, 30 Oct 2021 16:20:09 +0000 (12:20 -0400)] 
need shell script quoting inside of m4 quoting

4 years agoQuiet compiler
Arran Cudbard-Bell [Sat, 30 Oct 2021 14:40:19 +0000 (10:40 -0400)] 
Quiet compiler

4 years agoOrder by sign
Arran Cudbard-Bell [Fri, 29 Oct 2021 23:13:38 +0000 (19:13 -0400)] 
Order by sign

4 years agoRevert "move to a saner location"
Alan T. DeKok [Fri, 29 Oct 2021 13:57:03 +0000 (09:57 -0400)] 
Revert "move to a saner location"

This reverts commit 90052cfd2ee73c13c8d556e9dfc97af93b5f5fb1.

nope

4 years agoDisable dns lookups for fuzzers
Arran Cudbard-Bell [Fri, 29 Oct 2021 13:39:45 +0000 (09:39 -0400)] 
Disable dns lookups for fuzzers

4 years agomove to a saner location
Alan T. DeKok [Fri, 29 Oct 2021 13:25:15 +0000 (09:25 -0400)] 
move to a saner location

4 years agotrack types, too
Alan T. DeKok [Thu, 28 Oct 2021 19:50:51 +0000 (15:50 -0400)] 
track types, too

4 years agodon't keep adding numbers
Alan T. DeKok [Thu, 28 Oct 2021 14:46:35 +0000 (10:46 -0400)] 
don't keep adding numbers

4 years agoMinmax heap (#4290)
James Jones [Fri, 29 Oct 2021 13:23:55 +0000 (08:23 -0500)] 
Minmax heap (#4290)

* Add minmax_heap type

* Add minmax_heap type

* Add minmax_heap type

4 years agoValidate after we figure out it's a real pair list match
Arran Cudbard-Bell [Fri, 29 Oct 2021 05:38:41 +0000 (01:38 -0400)] 
Validate after we figure out it's a real pair list match

4 years agoDetect partial list matches
Arran Cudbard-Bell [Fri, 29 Oct 2021 05:30:46 +0000 (01:30 -0400)] 
Detect partial list matches

Ensures reply-message doesn't get parsed as reply.-message

4 years agoAll other table match functions are case insensitive
Arran Cudbard-Bell [Fri, 29 Oct 2021 03:59:46 +0000 (23:59 -0400)] 
All other table match functions are case insensitive

4 years agoFix another overflow
Arran Cudbard-Bell [Fri, 29 Oct 2021 03:56:16 +0000 (23:56 -0400)] 
Fix another overflow

4 years agoFix potential buffer overflow
Arran Cudbard-Bell [Fri, 29 Oct 2021 03:45:29 +0000 (23:45 -0400)] 
Fix potential buffer overflow

4 years agoAdd substr parser from time deltas
Arran Cudbard-Bell [Thu, 28 Oct 2021 22:00:40 +0000 (18:00 -0400)] 
Add substr parser from time deltas

4 years agoWe do need to include dcursor.c?
Arran Cudbard-Bell [Thu, 28 Oct 2021 19:09:40 +0000 (15:09 -0400)] 
We do need to include dcursor.c?

4 years agortlib and unwindlib need to align
Arran Cudbard-Bell [Thu, 28 Oct 2021 19:05:30 +0000 (15:05 -0400)] 
rtlib and unwindlib need to align

4 years ago*sigh* we don't need to bake time.c into the strerror tests
Arran Cudbard-Bell [Thu, 28 Oct 2021 18:58:47 +0000 (14:58 -0400)] 
*sigh* we don't need to bake time.c into the strerror tests

4 years agoDon't include the source file for the code under test unless we really need to
Arran Cudbard-Bell [Thu, 28 Oct 2021 18:55:00 +0000 (14:55 -0400)] 
Don't include the source file for the code under test unless we really need to

4 years agomacOS doesn't require --unwindlib and complaints bitterly
Arran Cudbard-Bell [Thu, 28 Oct 2021 18:49:12 +0000 (14:49 -0400)] 
macOS doesn't require --unwindlib and complaints bitterly

4 years agoOpt
Arran Cudbard-Bell [Thu, 28 Oct 2021 18:33:04 +0000 (14:33 -0400)] 
Opt

4 years agoWe don't actually need to include strerror.c here
Arran Cudbard-Bell [Thu, 28 Oct 2021 17:56:13 +0000 (13:56 -0400)] 
We don't actually need to include strerror.c here

4 years agoMaybe the missing extern it causing two versions of fr_time_multiplier_by_res to...
Arran Cudbard-Bell [Thu, 28 Oct 2021 17:49:53 +0000 (13:49 -0400)] 
Maybe the missing extern it causing two versions of fr_time_multiplier_by_res to be created?

4 years agoLet's hope the clang packages pull in lubunwind too *sigh*
Arran Cudbard-Bell [Thu, 28 Oct 2021 17:31:54 +0000 (13:31 -0400)] 
Let's hope the clang packages pull in lubunwind too *sigh*

4 years agoMaybe it doesn't like comments being inline
Arran Cudbard-Bell [Thu, 28 Oct 2021 17:21:20 +0000 (13:21 -0400)] 
Maybe it doesn't like comments being inline

4 years agoWe need to specify the unwind lib too
Arran Cudbard-Bell [Thu, 28 Oct 2021 17:16:33 +0000 (13:16 -0400)] 
We need to specify the unwind lib too

4 years agoApparently clang needs us to link to compiler-rt to get at the builtins...
Arran Cudbard-Bell [Thu, 28 Oct 2021 16:57:50 +0000 (12:57 -0400)] 
Apparently clang needs us to link to compiler-rt to get at the builtins...

4 years agoAdd generic time scaling functions
Arran Cudbard-Bell [Thu, 28 Oct 2021 16:32:07 +0000 (12:32 -0400)] 
Add generic time scaling functions

Deal with integer overflow in time manipulation and scaling functions by returning min/max.

4 years agoMove time precision table into value.c
Arran Cudbard-Bell [Thu, 28 Oct 2021 16:29:00 +0000 (12:29 -0400)] 
Move time precision table into value.c

4 years agoUse builtins for overflow detection
Arran Cudbard-Bell [Thu, 28 Oct 2021 16:27:46 +0000 (12:27 -0400)] 
Use builtins for overflow detection

4 years agoAdd some fudge to prevent spurious failures
Arran Cudbard-Bell [Thu, 28 Oct 2021 16:27:00 +0000 (12:27 -0400)] 
Add some fudge to prevent spurious failures

4 years agouse scale function instead of inline code
Alan T. DeKok [Thu, 28 Oct 2021 12:51:04 +0000 (08:51 -0400)] 
use scale function instead of inline code

the scale function also checks for overflow, and clamps the
output.

4 years agobetter variable name
Alan T. DeKok [Thu, 28 Oct 2021 12:50:56 +0000 (08:50 -0400)] 
better variable name

4 years agomove fr_unix_time_from_str() to time.c
Alan T. DeKok [Thu, 28 Oct 2021 12:35:29 +0000 (08:35 -0400)] 
move fr_unix_time_from_str() to time.c

4 years agoremove unused variable
Alan T. DeKok [Thu, 28 Oct 2021 12:35:13 +0000 (08:35 -0400)] 
remove unused variable

4 years agoremove redundant check
Alan T. DeKok [Wed, 27 Oct 2021 18:38:36 +0000 (14:38 -0400)] 
remove redundant check

4 years agotimeout too.
Arran Cudbard-Bell [Wed, 27 Oct 2021 20:58:03 +0000 (16:58 -0400)] 
timeout too.

4 years agoRun "slow-unit" output files too and pass _all_ matching crash files, not just the...
Arran Cudbard-Bell [Wed, 27 Oct 2021 20:46:20 +0000 (16:46 -0400)] 
Run "slow-unit" output files too and pass _all_ matching crash files, not just the first

4 years agoMake sure we really have overflowed
Arran Cudbard-Bell [Wed, 27 Oct 2021 20:00:40 +0000 (16:00 -0400)] 
Make sure we really have overflowed

4 years agoFix undefined behaviour in fr_time_delta_from_str
Arran Cudbard-Bell [Wed, 27 Oct 2021 19:46:01 +0000 (15:46 -0400)] 
Fix undefined behaviour in fr_time_delta_from_str

4 years agowhich -s is apparently nonstandard
Arran Cudbard-Bell [Wed, 27 Oct 2021 19:31:50 +0000 (15:31 -0400)] 
which -s is apparently nonstandard

4 years agoNo flock on macOS
Arran Cudbard-Bell [Wed, 27 Oct 2021 19:19:29 +0000 (15:19 -0400)] 
No flock on macOS

4 years agoDeal with zero length strings being cast to octets
Arran Cudbard-Bell [Wed, 27 Oct 2021 19:09:36 +0000 (15:09 -0400)] 
Deal with zero length strings being cast to octets

4 years agoFold data[0] by the number of types
Arran Cudbard-Bell [Wed, 27 Oct 2021 18:21:52 +0000 (14:21 -0400)] 
Fold data[0] by the number of types

4 years agoapparently this is needed
Alan T. DeKok [Wed, 27 Oct 2021 18:09:47 +0000 (14:09 -0400)] 
apparently this is needed

4 years agothese are only in clang>=13
Alan T. DeKok [Wed, 27 Oct 2021 15:05:44 +0000 (11:05 -0400)] 
these are only in clang>=13

4 years agoDon't use an intermediary buffer
Arran Cudbard-Bell [Wed, 27 Oct 2021 17:55:52 +0000 (13:55 -0400)] 
Don't use an intermediary buffer

4 years agoFix inlining for tmpl_cast_quote
Arran Cudbard-Bell [Wed, 27 Oct 2021 17:19:14 +0000 (13:19 -0400)] 
Fix inlining for tmpl_cast_quote

4 years agoSwitch ethernet parsing to substring parsing
Arran Cudbard-Bell [Wed, 27 Oct 2021 17:01:25 +0000 (13:01 -0400)] 
Switch ethernet parsing to substring parsing

4 years agoUse the cast type in fr_cond_promot_types
Arran Cudbard-Bell [Wed, 27 Oct 2021 17:00:57 +0000 (13:00 -0400)] 
Use the cast type in fr_cond_promot_types

4 years agoFill missed element in decode array
Arran Cudbard-Bell [Wed, 27 Oct 2021 16:59:30 +0000 (12:59 -0400)] 
Fill missed element in decode array

Break if either !a || !b even if it's not an error

4 years agoOnly raise an error on base 0 if we find trailing hexits AND a hex prefix
Arran Cudbard-Bell [Wed, 27 Oct 2021 16:58:56 +0000 (12:58 -0400)] 
Only raise an error on base 0 if we find trailing hexits AND a hex prefix

4 years agoAdd fr_value_box_from_substr
Arran Cudbard-Bell [Wed, 27 Oct 2021 16:15:47 +0000 (12:15 -0400)] 
Add fr_value_box_from_substr

it's not yet complete, but even the addition of the function caused significant issues.  It should now be safe at least...

4 years agoradict should only load the specified protocol
Arran Cudbard-Bell [Wed, 27 Oct 2021 15:51:38 +0000 (11:51 -0400)] 
radict should only load the specified protocol

4 years agoMissing error code string
Arran Cudbard-Bell [Wed, 27 Oct 2021 15:32:31 +0000 (11:32 -0400)] 
Missing error code string

4 years agoAdd escape rule lookup by char
Arran Cudbard-Bell [Wed, 27 Oct 2021 15:30:47 +0000 (11:30 -0400)] 
Add escape rule lookup by char

4 years agoFix radict to work with nested attributes
Arran Cudbard-Bell [Tue, 26 Oct 2021 21:29:26 +0000 (17:29 -0400)] 
Fix radict to work with nested attributes

4 years agosbuff reparse should set current to start
Arran Cudbard-Bell [Tue, 26 Oct 2021 20:36:12 +0000 (16:36 -0400)] 
sbuff reparse should set current to start

4 years agocheck bounds
Alan T. DeKok [Wed, 27 Oct 2021 13:57:30 +0000 (09:57 -0400)] 
check bounds

4 years agowe're not using this yet
Alan T. DeKok [Wed, 27 Oct 2021 13:20:58 +0000 (09:20 -0400)] 
we're not using this yet

4 years agojust find the files manually
Alan T. DeKok [Tue, 26 Oct 2021 19:12:09 +0000 (15:12 -0400)] 
just find the files manually

4 years agonew log-id targets and scripts
Alan T. DeKok [Tue, 26 Oct 2021 19:06:15 +0000 (15:06 -0400)] 
new log-id targets and scripts

4 years agoTypo
Arran Cudbard-Bell [Tue, 26 Oct 2021 18:33:37 +0000 (14:33 -0400)] 
Typo

4 years agoTypo
Arran Cudbard-Bell [Tue, 26 Oct 2021 18:27:34 +0000 (14:27 -0400)] 
Typo

4 years agoDetermine when typeof(ssize_t) == typeof(int64_t) and fix _Generic expressions which...
Arran Cudbard-Bell [Tue, 26 Oct 2021 18:21:42 +0000 (14:21 -0400)] 
Determine when typeof(ssize_t) == typeof(int64_t) and fix _Generic expressions which use both

4 years agoMove type compatibility check macro to build.h
Arran Cudbard-Bell [Tue, 26 Oct 2021 18:20:39 +0000 (14:20 -0400)] 
Move type compatibility check macro to build.h