xref: /aosp_15_r20/external/crosvm/fuzz/fuzz_targets/p9_tframe_fuzzer.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2018 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #![cfg(not(test))]
6 #![no_main]
7 #![allow(unused_variables)]
8 
9 use crosvm_fuzz::fuzz_target;
10 
11 fuzz_target!(|bytes: &[u8]| {
12     #[cfg(any(target_os = "android", target_os = "linux"))]
13     p9::fuzzing::tframe_decode(bytes);
14 });
15