Debian Codegraph @

test/resources/decode-error-tests.json

raw symbols SCIP
1 [
2 {
3 "description": "TestDecode_InvalidArgument - map/2 - arg len 2 greater than remaining buf len",
4 "input": "b900",
5 "error": true
6 },
7 {
8 "description": "TestDecode_InvalidArgument - tag/1 - arg len 1 greater than remaining buf len",
9 "input": "d8",
10 "error": true
11 },
12 {
13 "description": "TestDecode_InvalidArgument - major7/float64 - incomplete float64 at end of buf",
14 "input": "fb00000000000000",
15 "error": true
16 },
17 {
18 "description": "TestDecode_InvalidArgument - negint/4 - arg len 4 greater than remaining buf len",
19 "input": "3a000000",
20 "error": true
21 },
22 {
23 "description": "TestDecode_InvalidArgument - negint/8 - arg len 8 greater than remaining buf len",
24 "input": "3b00000000000000",
25 "error": true
26 },
27 {
28 "description": "TestDecode_InvalidArgument - string/4 - arg len 4 greater than remaining buf len",
29 "input": "7a000000",
30 "error": true
31 },
32 {
33 "description": "TestDecode_InvalidArgument - map/1 - arg len 1 greater than remaining buf len",
34 "input": "b8",
35 "error": true
36 },
37 {
38 "description": "TestDecode_InvalidArgument - map/4 - arg len 4 greater than remaining buf len",
39 "input": "ba000000",
40 "error": true
41 },
42 {
43 "description": "TestDecode_InvalidArgument - tag/2 - arg len 2 greater than remaining buf len",
44 "input": "d900",
45 "error": true
46 },
47 {
48 "description": "TestDecode_InvalidArgument - uint/1 - arg len 1 greater than remaining buf len",
49 "input": "18",
50 "error": true
51 },
52 {
53 "description": "TestDecode_InvalidArgument - string/1 - arg len 1 greater than remaining buf len",
54 "input": "78",
55 "error": true
56 },
57 {
58 "description": "TestDecode_InvalidArgument - string/8 - arg len 8 greater than remaining buf len",
59 "input": "7b00000000000000",
60 "error": true
61 },
62 {
63 "description": "TestDecode_InvalidArgument - string/2 - arg len 2 greater than remaining buf len",
64 "input": "7900",
65 "error": true
66 },
67 {
68 "description": "TestDecode_InvalidArgument - list/2 - arg len 2 greater than remaining buf len",
69 "input": "9900",
70 "error": true
71 },
72 {
73 "description": "TestDecode_InvalidArgument - slice/1 - arg len 1 greater than remaining buf len",
74 "input": "58",
75 "error": true
76 },
77 {
78 "description": "TestDecode_InvalidArgument - slice/4 - arg len 4 greater than remaining buf len",
79 "input": "5a000000",
80 "error": true
81 },
82 {
83 "description": "TestDecode_InvalidArgument - slice/8 - arg len 8 greater than remaining buf len",
84 "input": "5b00000000000000",
85 "error": true
86 },
87 {
88 "description": "TestDecode_InvalidArgument - negint/? - unexpected minor value 31",
89 "input": "3f",
90 "error": true
91 },
92 {
93 "description": "TestDecode_InvalidArgument - tag/8 - arg len 8 greater than remaining buf len",
94 "input": "db00000000000000",
95 "error": true
96 },
97 {
98 "description": "TestDecode_InvalidArgument - uint/2 - arg len 2 greater than remaining buf len",
99 "input": "1900",
100 "error": true
101 },
102 {
103 "description": "TestDecode_InvalidArgument - uint/8 - arg len 8 greater than remaining buf len",
104 "input": "1b00000000000000",
105 "error": true
106 },
107 {
108 "description": "TestDecode_InvalidArgument - negint/2 - arg len 2 greater than remaining buf len",
109 "input": "3900",
110 "error": true
111 },
112 {
113 "description": "TestDecode_InvalidArgument - negint/1 - arg len 1 greater than remaining buf len",
114 "input": "38",
115 "error": true
116 },
117 {
118 "description": "TestDecode_InvalidArgument - list/8 - arg len 8 greater than remaining buf len",
119 "input": "9b00000000000000",
120 "error": true
121 },
122 {
123 "description": "TestDecode_InvalidArgument - tag/4 - arg len 4 greater than remaining buf len",
124 "input": "da000000",
125 "error": true
126 },
127 {
128 "description": "TestDecode_InvalidArgument - major7/float32 - incomplete float32 at end of buf",
129 "input": "fa000000",
130 "error": true
131 },
132 {
133 "description": "TestDecode_InvalidArgument - uint/4 - arg len 4 greater than remaining buf len",
134 "input": "1a000000",
135 "error": true
136 },
137 {
138 "description": "TestDecode_InvalidArgument - slice/2 - arg len 2 greater than remaining buf len",
139 "input": "5900",
140 "error": true
141 },
142 {
143 "description": "TestDecode_InvalidArgument - list/4 - arg len 4 greater than remaining buf len",
144 "input": "9a000000",
145 "error": true
146 },
147 {
148 "description": "TestDecode_InvalidArgument - tag/? - unexpected minor value 31",
149 "input": "df",
150 "error": true
151 },
152 {
153 "description": "TestDecode_InvalidArgument - major7/? - unexpected minor value 31",
154 "input": "ff",
155 "error": true
156 },
157 {
158 "description": "TestDecode_InvalidArgument - uint/? - unexpected minor value 31",
159 "input": "1f",
160 "error": true
161 },
162 {
163 "description": "TestDecode_InvalidArgument - list/1 - arg len 1 greater than remaining buf len",
164 "input": "98",
165 "error": true
166 },
167 {
168 "description": "TestDecode_InvalidArgument - map/8 - arg len 8 greater than remaining buf len",
169 "input": "bb00000000000000",
170 "error": true
171 },
172 {
173 "description": "TestDecode_InvalidList - [] / eof after head - unexpected end of payload",
174 "input": "81",
175 "error": true
176 },
177 {
178 "description": "TestDecode_InvalidList - [] / invalid item - arg len 1 greater than remaining buf len",
179 "input": "8118",
180 "error": true
181 },
182 {
183 "description": "TestDecode_InvalidList - [_ ] / no break - expected break marker",
184 "input": "9f",
185 "error": true
186 },
187 {
188 "description": "TestDecode_InvalidList - [_ ] / invalid item - arg len 1 greater than remaining buf len",
189 "input": "9f18",
190 "error": true
191 },
192 {
193 "description": "TestDecode_InvalidMap - {} / invalid key - slice len 1 greater than remaining buf len",
194 "input": "a17801",
195 "error": true
196 },
197 {
198 "description": "TestDecode_InvalidMap - {} / invalid value - arg len 1 greater than remaining buf len",
199 "input": "a163666f6f18",
200 "error": true
201 },
202 {
203 "description": "TestDecode_InvalidMap - {_ } / no break - expected break marker",
204 "input": "bf",
205 "error": true
206 },
207 {
208 "description": "TestDecode_InvalidMap - {_ } / invalid key - slice len 1 greater than remaining buf len",
209 "input": "bf7801",
210 "error": true
211 },
212 {
213 "description": "TestDecode_InvalidMap - {_ } / invalid value - arg len 1 greater than remaining buf len",
214 "input": "bf63666f6f18",
215 "error": true
216 },
217 {
218 "description": "TestDecode_InvalidMap - {} / eof after head - unexpected end of payload",
219 "input": "a1",
220 "error": true
221 },
222 {
223 "description": "TestDecode_InvalidSlice - slice/1, not enough bytes - slice len 1 greater than remaining buf len",
224 "input": "5801",
225 "error": true
226 },
227 {
228 "description": "TestDecode_InvalidSlice - slice/?, nested indefinite - nested indefinite slice",
229 "input": "5f5f",
230 "error": true
231 },
232 {
233 "description": "TestDecode_InvalidSlice - string/?, no break - expected break marker",
234 "input": "7f",
235 "error": true
236 },
237 {
238 "description": "TestDecode_InvalidSlice - string/?, nested indefinite - nested indefinite slice",
239 "input": "7f7f",
240 "error": true
241 },
242 {
243 "description": "TestDecode_InvalidSlice - string/?, invalid nested definite - decode subslice: slice len 1 greater than remaining buf len",
244 "input": "7f7801",
245 "error": true
246 },
247 {
248 "description": "TestDecode_InvalidSlice - slice/?, no break - expected break marker",
249 "input": "5f",
250 "error": true
251 },
252 {
253 "description": "TestDecode_InvalidSlice - slice/?, invalid nested major - unexpected major type 3 in indefinite slice",
254 "input": "5f60",
255 "error": true
256 },
257 {
258 "description": "TestDecode_InvalidSlice - slice/?, invalid nested definite - decode subslice: slice len 1 greater than remaining buf len",
259 "input": "5f5801",
260 "error": true
261 },
262 {
263 "description": "TestDecode_InvalidSlice - string/1, not enough bytes - slice len 1 greater than remaining buf len",
264 "input": "7801",
265 "error": true
266 },
267 {
268 "description": "TestDecode_InvalidSlice - string/?, invalid nested major - unexpected major type 2 in indefinite slice",
269 "input": "7f40",
270 "error": true
271 },
272 {
273 "description": "TestDecode_InvalidTag - invalid value - arg len 1 greater than remaining buf len",
274 "input": "c118",
275 "error": true
276 },
277 {
278 "description": "TestDecode_InvalidTag - eof - unexpected end of payload",
279 "input": "c1",
280 "error": true
281 }
282 ]