70 lines
1.8 KiB
Markdown
70 lines
1.8 KiB
Markdown
# bf-266ry: Verify fuzz toolchain installation and configuration
|
|
|
|
## Verification Summary
|
|
|
|
All acceptance criteria PASS:
|
|
|
|
### 1. cargo-fuzz installation
|
|
```
|
|
$ cargo fuzz --version
|
|
cargo-fuzz 0.13.1
|
|
```
|
|
✅ PASS - cargo-fuzz 0.13.1 is installed and returns without error
|
|
|
|
### 2. Fuzz targets directory
|
|
```
|
|
$ ls -la fuzz/fuzz_targets/
|
|
total 36
|
|
drwxr-xr-x 2 coding users 4096 Jul 6 13:43 .
|
|
drwxr-xr-x 6 coding users 4096 Jul 6 17:49 ..
|
|
-rw-r--r-- 1 coding users 1179 May 20 18:13 cmap_parser.rs
|
|
-rw-r--r-- 1 coding users 822 Jul 5 18:05 content.rs
|
|
-rw-r--r-- 1 coding users 752 May 20 18:13 lexer.rs
|
|
-rw-r--r-- 1 coding users 793 May 20 18:13 object_parser.rs
|
|
-rw-r--r-- 1 coding users 766 Jul 6 13:43 profile_yaml.rs
|
|
-rw-r--r-- 1 coding users 1421 Jul 6 13:43 stream_decoder.rs
|
|
-rw-r--r-- 1 coding users 733 May 20 18:13 xref.rs
|
|
```
|
|
✅ PASS - `fuzz/fuzz_targets/content.rs` exists (plus 6 other targets)
|
|
|
|
### 3. Fuzz configuration files
|
|
```
|
|
$ cat fuzz/Cargo.toml
|
|
[package]
|
|
name = "pdftract-fuzz"
|
|
version = "0.0.0"
|
|
edition = "2021"
|
|
license = "MIT OR Apache-2.0"
|
|
publish = false
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
pdftract-core = { path = "../crates/pdftract-core", features = ["profiles"] }
|
|
libfuzzer-sys = { version = "0.4", features = ["arbitrary-derive"] }
|
|
```
|
|
✅ PASS - fuzz/Cargo.toml exists, is valid, and defines all 7 fuzz targets
|
|
|
|
### 4. Fuzz target verification
|
|
```
|
|
$ cargo fuzz list
|
|
cmap_parser
|
|
content
|
|
lexer
|
|
object_parser
|
|
profile_yaml
|
|
stream_decoder
|
|
xref
|
|
```
|
|
✅ PASS - All 7 fuzz targets are recognized by cargo-fuzz
|
|
|
|
## Conclusion
|
|
|
|
The fuzz toolchain is properly installed and configured. All acceptance criteria are met:
|
|
- cargo-fuzz 0.13.1 installed
|
|
- 7 fuzz targets exist in fuzz/fuzz_targets/
|
|
- fuzz/Cargo.toml is valid and complete
|
|
- All targets are recognized and runnable
|
|
|
|
No issues found. The fuzzing infrastructure is ready for use.
|