mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 13:23:08 +00:00
981f304f84
This simplifies `cargo fuzz` usage. Fuzzers can be built with `cargo fuzz build` without any other arguments. BUG=b:279217867 TEST=`cargo fuzz build` Change-Id: I11b8a8ba4c2b3e2d1a42973699e4d9c3920635b6 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4540001 Commit-Queue: Dennis Kempin <denniskempin@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
14 lines
327 B
Rust
14 lines
327 B
Rust
// Copyright 2018 The ChromiumOS Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#![cfg(not(test))]
|
|
#![no_main]
|
|
#![allow(unused_variables)]
|
|
|
|
use crosvm_fuzz::fuzz_target;
|
|
|
|
fuzz_target!(|bytes: &[u8]| {
|
|
#[cfg(unix)]
|
|
p9::fuzzing::tframe_decode(bytes);
|
|
});
|