-
-
Notifications
You must be signed in to change notification settings - Fork 2
81 lines (78 loc) · 2.33 KB
/
fuzz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: fuzz
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '30 12 * * 0'
permissions:
contents: read
jobs:
fuzz:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
env:
RUSTUP_TOOLCHAIN: nightly
strategy:
fail-fast: false
matrix:
target:
# classfile fuzzing
- base_type_parse
- class_access_flags_from_bytes
- class_file_from_bytes
- constant_from_bytes
- constant_pool_from_bytes
- field_access_flags_from_bytes
- field_from_bytes
- field_type_parse
- method_access_flags_from_bytes
- method_from_bytes
- mutf8_from_bytes
- mutf8_to_bytes
- reference_kind_from_bytes
- version_from_bytes
# classfile attributes fuzzing
- annotation_from_bytes
- annotation_element_from_bytes
- annotation_value_pair_from_bytes
- array_type_from_bytes
- bootstrap_method_from_bytes
- exception_table_entry_from_bytes
- exports_flags_from_bytes
- exports_from_bytes
- inner_class_from_bytes
- instruction_from_bytes
- line_number_from_bytes
- local_variable_table_from_bytes
- local_variable_target_from_bytes
- method_parameter_from_bytes
- module_access_flags_from_bytes
- nested_class_access_flags_from_bytes
- opens_from_bytes
- opens_flags_from_bytes
- parameter_annotation_from_bytes
- provides_from_bytes
- record_from_bytes
- requires_flags_from_bytes
- requires_from_bytes
- stack_frame_from_bytes
- target_path_from_bytes
- target_type_from_bytes
- type_annotation_from_bytes
- verification_type_from_bytes
include:
- target: base_type_parse
option: -max_len=1
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
- name: Install cargo fuzz
run: cargo install cargo-fuzz
- name: Fuzz Tests
run: cargo fuzz run ${{ matrix.target }} -- -max_total_time=30 -rss_limit_mb=8192 ${{ matrix.option }}