Todd C. Miller
|
4480e26972
|
Build (but don't run) fuzzers as part of "make check".
Uses a stub to make it possible to link w/o libfuzzer.
The goal is to ensure the fuzzers are always buildable and avoid bit rot.
|
2021-02-06 08:38:38 -07:00 |
|
Todd C. Miller
|
e675f4c078
|
Don't allow the sudoers fuzzer to open include files.
If we allow the fuzzer to choose include paths it will include
random files in the file system. This leads to bug reports that
cannot be reproduced.
|
2021-02-03 15:20:54 -07:00 |
|
Todd C. Miller
|
3237a18ee3
|
Use sudoersrestart() in fuzz_sudoers.c
Since we run the parser multiple times we need to restart it each time.
|
2021-02-03 12:52:15 -07:00 |
|
Todd C. Miller
|
e66b132d76
|
Parser needs user_shost for the %h escape in @include expansion.
Fixes oss-fuzz issue #30238
|
2021-02-03 08:56:32 -07:00 |
|
Todd C. Miller
|
8f2254594f
|
close sudoersin, not fp, and reset it to be safe
|
2021-02-02 14:12:43 -07:00 |
|
Todd C. Miller
|
20b3904f4f
|
Add missing fclose(3) of fmemopen(3) stream; it does not modify the data.
|
2021-02-02 13:58:31 -07:00 |
|
Todd C. Miller
|
0d34fa4285
|
Parse into a local parse_tree and add missing cleanup.
Since parsed_policy is for the sudoers parser we should declare our own.
|
2021-02-01 21:04:49 -07:00 |
|
Todd C. Miller
|
d3735b98e9
|
Call init_parser() after parsing to clean up completely.
|
2021-02-01 20:37:59 -07:00 |
|
Todd C. Miller
|
1e3cecc608
|
Add initial fuzzers to be used by oss-fuzz.
These are not yet hooked up to the sudo build.
|
2021-02-01 15:17:57 -07:00 |
|