Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
..
fuzz_corpus 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
proto 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
test 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
BUILD.gn 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
DEPS 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
DIR_METADATA 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
OWNERS 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
README.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_auth_util.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_auth_util.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_auth_util_fuzzer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_auth_util_fuzzer_shared.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_auth_util_fuzzer_shared.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_auth_util_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_channel_enum.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_channel_enum.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_framer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_framer.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_framer_ingest_fuzzer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_framer_serialize_fuzzer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_framer_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_message_handler.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_message_handler.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_message_handler_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_message_util.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_message_util.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_message_util_fuzzer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_message_util_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_socket.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_socket.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_socket_service.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_socket_service.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_socket_service_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_socket_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_test_util.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_test_util.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_transport.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_transport.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
cast_transport_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
enum_table.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
enum_table.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
enum_table_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
fuzz.dict 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
keep_alive_delegate.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
keep_alive_delegate.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
keep_alive_delegate_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
keep_alive_handler.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
keep_alive_handler.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
libcast_socket_service.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
libcast_socket_service.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
libcast_socket_service_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
logger.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
logger.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
logger_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
mojo_data_pump.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
mojo_data_pump.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
openscreen_cast_auth_util_fuzzer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
openscreen_message_framer_deserialize_fuzzer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前
openscreen_message_framer_serialize_fuzzer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年之前

README.md

How to Run a Fuzz Test

Create an appropriate build config:

% tools/mb/mb.py gen -m chromium.fuzz -b 'Libfuzzer Upload Linux ASan' out/libfuzzer
% gn gen out/libfuzzer

Build the fuzz target:

% ninja -C out/libfuzzer $TEST_NAME

Create an empty corpus directory if you don’t have one already.

% mkdir ${TEST_NAME}_corpus

Turning off detection of ODR violations that occur in component builds:

% export ASAN_OPTIONS=detect_odr_violation=0

If the test has a seed corpus:

% ./out/libfuzzer/$TEST_NAME ${TEST_NAME}_corpus out/libfuzzer/gen/components/cast_channel/${TEST_NAME}_corpus

If the test has no seed corpus, omit the last parameter:

% ./out/libfuzzer/$TEST_NAME ${TEST_NAME}_corpus

For more details, refer to https://chromium.googlesource.com/chromium/src/testing/libfuzzer/+/refs/heads/main/getting_started.md