File tree 6 files changed +400
-1
lines changed
6 files changed +400
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ members = ["proc"]
61
61
[dependencies ]
62
62
ahash = " 0.8.11"
63
63
anyhow = { version = " 1.0" , optional = true }
64
+ arbitrary = { version = " 1" , optional = true }
64
65
base64 = { version = " 0.22" , optional = true }
65
66
bitflags = " 2.3"
66
67
blake3 = { version = " 1.5" , optional = true }
@@ -103,6 +104,7 @@ rand = ["dep:rand"]
103
104
models = [" dep:everscale-crypto" , " dep:tl-proto" ]
104
105
blake3 = [" dep:blake3" ]
105
106
rayon = [" dep:rayon" , " blake3?/rayon" ]
107
+ arbitrary = [" dep:arbitrary" ]
106
108
abi = [
107
109
" dep:anyhow" ,
108
110
" dep:bytes" ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ libfuzzer-sys = "0.4"
13
13
14
14
[dependencies .everscale-types ]
15
15
path = " .."
16
- features = [" base64" ]
16
+ features = [" base64" , " arbitrary " ]
17
17
18
18
# Prevent this from interfering with workspaces
19
19
[workspace ]
@@ -31,6 +31,12 @@ path = "fuzz_targets/boc_decode.rs"
31
31
test = false
32
32
doc = false
33
33
34
+ [[bin ]]
35
+ name = " boc_encode"
36
+ path = " fuzz_targets/boc_encode.rs"
37
+ test = false
38
+ doc = false
39
+
34
40
[[bin ]]
35
41
name = " boc_decode_pair"
36
42
path = " fuzz_targets/boc_decode_pair.rs"
Original file line number Diff line number Diff line change
1
+ #![ no_main]
2
+ use libfuzzer_sys:: fuzz_target;
3
+
4
+ use everscale_types:: prelude:: { Boc , Cell } ;
5
+
6
+ fuzz_target ! ( |cell: Cell | {
7
+ _ = Boc :: encode( cell) ;
8
+ } ) ;
You can’t perform that action at this time.
0 commit comments