Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Feb 28, 2024
1 parent 266a77d commit bc72442
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions doc/Fuzzer.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ For memory leak detection enable the following environment variable:

The mediasoup-worker fuzzer reads some custom environment variables to decide which kind of fuzzing perform:

- `MS_FUZZ_STUN=1`: Do STUN fuzzing.
- `MS_FUZZ_DTLS=1`: Do DTLS fuzzing.
- `MS_FUZZ_RTP=1`: Do RTP fuzzing.
- `MS_FUZZ_RTCP=1`: Do RTCP fuzzing.
- `MS_FUZZ_UTILS=1`: Do C++ utils fuzzing.
- `MS_FUZZ_STUN=1`: Enable STUN fuzzer.
- `MS_FUZZ_DTLS=1`: Enable DTLS fuzzer.
- `MS_FUZZ_RTP=1`: Enable RTP fuzzer.
- `MS_FUZZ_RTCP=1`: Enable RTCP fuzzer.
- `MS_FUZZ_UTILS=1`: Enable C++ utils fuzzer.
- If none of them is given, then **all** fuzzers are enabled.

The log level can also be set by setting the `MS_FUZZ_LOG_LEVEL` environment variable to "debug", "warn" or "error" (it is "none" if unset).
Expand Down
10 changes: 5 additions & 5 deletions worker/fuzzer/src/fuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,31 +96,31 @@ int Init()

if (std::getenv("MS_FUZZ_STUN") && std::string(std::getenv("MS_FUZZ_STUN")) == "1")
{
std::cout << "[fuzzer] STUN fuzzers enabled" << std::endl;
std::cout << "[fuzzer] STUN fuzzer enabled" << std::endl;

fuzzStun = true;
}
if (std::getenv("MS_FUZZ_DTLS") && std::string(std::getenv("MS_FUZZ_DTLS")) == "1")
{
std::cout << "[fuzzer] DTLS fuzzers enabled" << std::endl;
std::cout << "[fuzzer] DTLS fuzzer enabled" << std::endl;

fuzzDtls = true;
}
if (std::getenv("MS_FUZZ_RTP") && std::string(std::getenv("MS_FUZZ_RTP")) == "1")
{
std::cout << "[fuzzer] RTP fuzzers enabled" << std::endl;
std::cout << "[fuzzer] RTP fuzzer enabled" << std::endl;

fuzzRtp = true;
}
if (std::getenv("MS_FUZZ_RTCP") && std::string(std::getenv("MS_FUZZ_RTCP")) == "1")
{
std::cout << "[fuzzer] RTCP fuzzers enabled" << std::endl;
std::cout << "[fuzzer] RTCP fuzzer enabled" << std::endl;

fuzzRtcp = true;
}
if (std::getenv("MS_FUZZ_UTILS") && std::string(std::getenv("MS_FUZZ_UTILS")) == "1")
{
std::cout << "[fuzzer] Utils fuzzers enabled" << std::endl;
std::cout << "[fuzzer] Utils fuzzer enabled" << std::endl;

fuzzUtils = true;
}
Expand Down

0 comments on commit bc72442

Please sign in to comment.