utopia-ia/elffuss-braid public
| 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright (c) 2026 UtopiaIA |
| 3 | |
| 4 | //! A tree node either fails to decode or re-encodes to exactly its input. |
| 5 | |
| 6 | #![no_main] |
| 7 | |
| 8 | use braid_format::Node; |
| 9 | use libfuzzer_sys::fuzz_target; |
| 10 | |
| 11 | fuzz_target!(|data: &[u8]| { |
| 12 | if let Ok(node) = Node::decode(data) { |
| 13 | assert_eq!(node.encode(), data); |
| 14 | } |
| 15 | }); |