-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfuzz_target.proto
104 lines (91 loc) · 1.88 KB
/
fuzz_target.proto
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
syntax = "proto3";
enum PbDeflateFlush {
PB_DEFLATE_Z_NO_FLUSH = 0;
PB_DEFLATE_Z_PARTIAL_FLUSH = 1;
PB_DEFLATE_Z_SYNC_FLUSH = 2;
PB_DEFLATE_Z_FULL_FLUSH = 3;
PB_DEFLATE_Z_BLOCK = 5;
}
enum PbInflateFlush {
PB_INFLATE_Z_NO_FLUSH = 0;
}
enum PbLevel {
PB_Z_NO_COMPRESSION = 0;
PB_Z_BEST_SPEED = 1;
PB_Z_LEVEL2 = 2;
PB_Z_LEVEL3 = 3;
PB_Z_LEVEL4 = 4;
PB_Z_LEVEL5 = 5;
PB_Z_LEVEL6 = 6;
PB_Z_LEVEL7 = 7;
PB_Z_LEVEL8 = 8;
PB_Z_BEST_COMPRESSION = 9;
PB_Z_DEFAULT_COMPRESSION = -1;
}
enum PbStrategy {
PB_Z_DEFAULT_STRATEGY = 0;
PB_Z_FILTERED = 1;
PB_Z_HUFFMAN_ONLY = 2;
PB_Z_RLE = 3;
PB_Z_FIXED = 4;
}
enum PbMemLevel {
PB_MEM_LEVEL_DEFAULT = 0;
PB_MEM_LEVEL1 = 1;
PB_MEM_LEVEL2 = 2;
PB_MEM_LEVEL3 = 3;
PB_MEM_LEVEL4 = 4;
PB_MEM_LEVEL5 = 5;
PB_MEM_LEVEL6 = 6;
PB_MEM_LEVEL7 = 7;
PB_MEM_LEVEL8 = 8;
PB_MAX_MEM_LEVEL = 9;
}
message PbDeflate {
int32 avail_in = 1;
int32 avail_out = 2;
PbDeflateFlush flush = 3;
}
message PbDeflateParams {
int32 avail_in = 1;
int32 avail_out = 2;
PbLevel level = 3;
PbStrategy strategy = 4;
}
message PbDeflateCopy {
}
message PbInflate {
int32 avail_in = 1;
int32 avail_out = 2;
PbInflateFlush flush = 3;
}
message PbInflateCopy {
}
message PbDeflateOp {
oneof op {
PbDeflate deflate = 1;
PbDeflateParams deflate_params = 2;
PbDeflateCopy deflate_copy = 3;
}
}
message PbInflateOp {
oneof op {
PbInflate inflate = 1;
PbInflateCopy inflate_copy = 2;
}
}
message PbPlan {
bytes data = 1;
PbLevel level = 2;
int32 window_bits = 3;
PbMemLevel mem_level = 4;
PbStrategy strategy = 5;
bytes dict = 6;
repeated int32 deflate_dict_pieces = 7;
repeated PbDeflateOp deflate_ops = 8;
repeated int32 finish_avail_outs = 9;
repeated int32 inflate_dict_pieces = 10;
repeated PbInflateOp inflate_ops = 11;
int32 tail_size = 12;
repeated int32 bit_flips = 13;
}