Todd C. Miller
|
f6e4d2765a
|
Add explicit include of unistd.h for getopt(3) and related variables.
|
2022-07-05 11:35:25 -06:00 |
|
Todd C. Miller
|
f5ac1317c4
|
Make sudo pass -Wmissing-prototypes
|
2022-06-27 12:48:03 -06:00 |
|
Todd C. Miller
|
2d6b9d22e1
|
For logsrvd_conf_test include both tls and non-tls configs.
|
2022-06-02 11:38:43 -06:00 |
|
Todd C. Miller
|
d7b2ff3214
|
Add a simple regression test for logsrvd.conf parser.
Unlike the parser fuzzer, this includes sample certs and keys.
This test would have detected the BIO_new_file() bug in set_dhparams().
|
2022-06-02 11:13:18 -06:00 |
|
Todd C. Miller
|
e703feeae2
|
sudo_regex_compile_v1 stub: set errstr on error
|
2022-02-25 14:07:22 -07:00 |
|
Todd C. Miller
|
590c4cf62f
|
fuzz_logsrvd_conf: add stub version of sudo_regex_compile_v1().
We want to fuzz our parser, not the libc regular expression code.
|
2022-02-25 10:13:34 -07:00 |
|
Todd C. Miller
|
41bc52302b
|
Do not disable fuzzer output if SUDO_FUZZ_VERBOSE env variable is set.
|
2022-02-22 12:04:10 -07:00 |
|
Todd C. Miller
|
6564f1ae4c
|
Work around a glibc regcomp() bug with repeated '+' operators.
Glibc regcomp() has a bug where it uses excessive memory for repeated
'+' ops. Collapse them to avoid running the fuzzer out of memory.
|
2022-02-01 13:12:19 -07:00 |
|
Todd C. Miller
|
ac555d454f
|
Rebase seed corpus on updated sudo_logsrvd.conf example.
|
2022-02-01 13:10:05 -07:00 |
|
Todd C. Miller
|
9303aec0de
|
Sync fuzzing dictionary with current configuration keyword list.
|
2022-01-29 10:30:37 -07:00 |
|
Todd C. Miller
|
87c1dd9d7d
|
Move include of log_server.pb-c.h into logsrvd.h and sendlog.h
This way there is no include file order issue with the
PROTOBUF_C_VERSION_NUMBER check.
|
2021-10-25 12:25:24 -06:00 |
|
Todd C. Miller
|
eefb7b0d54
|
Use a consistent version of fuzz_conversation() with all fuzzers.
Also undo a change to fuzz_sudoers.c that snuck in to the last commit.
|
2021-09-28 20:20:28 -06:00 |
|
Todd C. Miller
|
7d964875df
|
Fuzzers should not produce output.
Excessive output makes the fuzzer runs much less efficient.
|
2021-09-28 18:53:49 -06:00 |
|
Todd C. Miller
|
efaa173fbe
|
Replace logsrvd_is_early() with logsrvd_warn_stderr().
This is now defined in logsrvd_conf.c which removes a dependency
on another compilation unit for the fuzzer.
|
2021-06-16 08:45:29 -06:00 |
|
Todd C. Miller
|
d311c7b2ee
|
If logsrvd_config not set fall back to using stderr for warnings.
Also fix fuzz_logsrvd_conf link error.
|
2021-06-13 18:42:09 -06:00 |
|
Todd C. Miller
|
e4e0e734b9
|
Update sudo_logsrvd.conf fuzzer to match configuration changes.
|
2021-04-09 13:34:36 -06:00 |
|
Todd C. Miller
|
977f238d35
|
Add dictionary file for fuzz_logsrvd_conf.
|
2021-03-18 19:46:08 -06:00 |
|
Todd C. Miller
|
6eff3b313b
|
Move corpus files to a seed subdirectory.
|
2021-03-18 15:28:29 -06:00 |
|
Todd C. Miller
|
95bfd65fec
|
Flush stdout before successful return from LLVMFuzzerTestOneInput().
Fixes a problem with diag lines from libFuzzer being interspersed
with test output.
|
2021-03-18 13:08:30 -06:00 |
|
Todd C. Miller
|
851247e58c
|
Split iolog_fileio.c into multiple files.
|
2021-02-26 21:07:48 -07:00 |
|
Todd C. Miller
|
b3ef60312c
|
Don't try to run getters if we failed to parse the config file.
|
2021-02-26 05:37:50 -07:00 |
|
Todd C. Miller
|
df1b431110
|
No longer need to stub out eventlog config functions.
|
2021-02-25 16:08:55 -07:00 |
|
Todd C. Miller
|
f5d7db56e7
|
Call public getters in logsrvd.conf fuzzer and add to corpus.
Now exercises the syslog config erorr path.
|
2021-02-25 16:00:31 -07:00 |
|
Todd C. Miller
|
dba37768bb
|
Stub out eventlog and iolog configuration setters.
|
2021-02-24 13:02:14 -07:00 |
|
Todd C. Miller
|
d235083342
|
Add simple fuzzer for sudo_logsrvd.conf parser.
|
2021-02-15 15:52:17 -07:00 |
|