Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | static | - |
7 | _Bool | - |
8 | have_read_stdin; | - |
9 | | - |
10 | | - |
11 | static size_t min_digest_line_length; | - |
12 | | - |
13 | | - |
14 | static size_t digest_hex_bytes; | - |
15 | | - |
16 | | - |
17 | | - |
18 | static | - |
19 | _Bool | - |
20 | status_only = | - |
21 | 0 | - |
22 | ; | - |
23 | | - |
24 | | - |
25 | | - |
26 | static | - |
27 | _Bool | - |
28 | warn = | - |
29 | 0 | - |
30 | ; | - |
31 | | - |
32 | | - |
33 | static | - |
34 | _Bool | - |
35 | ignore_missing = | - |
36 | 0 | - |
37 | ; | - |
38 | | - |
39 | | - |
40 | static | - |
41 | _Bool | - |
42 | quiet = | - |
43 | 0 | - |
44 | ; | - |
45 | | - |
46 | | - |
47 | | - |
48 | static | - |
49 | _Bool | - |
50 | strict = | - |
51 | 0 | - |
52 | ; | - |
53 | | - |
54 | | - |
55 | static int bsd_reversed = -1; | - |
56 | | - |
57 | | - |
58 | static char const *const algorithm_in_string[] = | - |
59 | { | - |
60 | "blake2b", | - |
61 | ((void *)0) | - |
62 | | - |
63 | }; | - |
64 | static char const *const algorithm_out_string[] = | - |
65 | { | - |
66 | "BLAKE2b", | - |
67 | ((void *)0) | - |
68 | | - |
69 | }; | - |
70 | enum Algorithm | - |
71 | { | - |
72 | BLAKE2b | - |
73 | }; | - |
74 | _Static_assert ((sizeof (algorithm_in_string) / sizeof *(algorithm_in_string)) == 2, "verify (" "ARRAY_CARDINALITY (algorithm_in_string) == 2" ")"); | - |
75 | _Static_assert ((sizeof (algorithm_out_string) / sizeof *(algorithm_out_string)) == 2, "verify (" "ARRAY_CARDINALITY (algorithm_out_string) == 2" ")"); | - |
76 | | - |
77 | static enum Algorithm b2_algorithm; | - |
78 | static uintmax_t b2_length; | - |
79 | static blake2fn blake2fns[]= | - |
80 | { | - |
81 | blake2b_stream | - |
82 | }; | - |
83 | static uintmax_t blake2_max_len[]= | - |
84 | { | - |
85 | 64 | - |
86 | }; | - |
87 | | - |
88 | | - |
89 | | - |
90 | | - |
91 | enum | - |
92 | { | - |
93 | IGNORE_MISSING_OPTION = 0x7f + 1, | - |
94 | STATUS_OPTION, | - |
95 | QUIET_OPTION, | - |
96 | STRICT_OPTION, | - |
97 | TAG_OPTION | - |
98 | }; | - |
99 | | - |
100 | static struct option const long_options[] = | - |
101 | { | - |
102 | | - |
103 | { "length", | - |
104 | 1 | - |
105 | , | - |
106 | ((void *)0) | - |
107 | , 'l'}, | - |
108 | | - |
109 | { "binary", | - |
110 | 0 | - |
111 | , | - |
112 | ((void *)0) | - |
113 | , 'b' }, | - |
114 | { "check", | - |
115 | 0 | - |
116 | , | - |
117 | ((void *)0) | - |
118 | , 'c' }, | - |
119 | { "ignore-missing", | - |
120 | 0 | - |
121 | , | - |
122 | ((void *)0) | - |
123 | , IGNORE_MISSING_OPTION}, | - |
124 | { "quiet", | - |
125 | 0 | - |
126 | , | - |
127 | ((void *)0) | - |
128 | , QUIET_OPTION }, | - |
129 | { "status", | - |
130 | 0 | - |
131 | , | - |
132 | ((void *)0) | - |
133 | , STATUS_OPTION }, | - |
134 | { "text", | - |
135 | 0 | - |
136 | , | - |
137 | ((void *)0) | - |
138 | , 't' }, | - |
139 | { "warn", | - |
140 | 0 | - |
141 | , | - |
142 | ((void *)0) | - |
143 | , 'w' }, | - |
144 | { "strict", | - |
145 | 0 | - |
146 | , | - |
147 | ((void *)0) | - |
148 | , STRICT_OPTION }, | - |
149 | { "tag", | - |
150 | 0 | - |
151 | , | - |
152 | ((void *)0) | - |
153 | , TAG_OPTION }, | - |
154 | { "help", | - |
155 | 0 | - |
156 | , | - |
157 | ((void *)0) | - |
158 | , GETOPT_HELP_CHAR }, | - |
159 | { "version", | - |
160 | 0 | - |
161 | , | - |
162 | ((void *)0) | - |
163 | , GETOPT_VERSION_CHAR }, | - |
164 | { | - |
165 | ((void *)0) | - |
166 | , 0, | - |
167 | ((void *)0) | - |
168 | , 0 } | - |
169 | }; | - |
170 | | - |
171 | void | - |
172 | usage (int status) | - |
173 | { | - |
174 | if (status != TRUE | evaluated 24 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| FALSE | evaluated 112 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
| 24-112 |
175 | 0TRUE | evaluated 24 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| FALSE | evaluated 112 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
| 24-112 |
176 | ) | - |
177 | do { fprintf ( | - |
178 | stderr | - |
179 | , | - |
180 | dcgettext (((void *)0), | - |
181 | "Try '%s --help' for more information.\n" | - |
182 | , 5) | - |
183 | , program_name); }executed 24 times by 7 tests: end of block Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
while (0); | 24 |
184 | else | - |
185 | { | - |
186 | printf ( | - |
187 | dcgettext (((void *)0), | - |
188 | "Usage: %s [OPTION]... [FILE]...\nPrint or check %s (%d-bit) checksums.\n" | - |
189 | , 5) | - |
190 | | - |
191 | | - |
192 | | - |
193 | , | - |
194 | program_name, | - |
195 | "BLAKE2", | - |
196 | 512); | - |
197 | | - |
198 | emit_stdin_note (); | - |
199 | if ( | - |
200 | 0 | - |
201 | ) | - |
202 | fputs_unlocked ( dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
203 | dcgettext (((void *)0), dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
204 | "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
205 | , 5) dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
206 | , dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
207 | stdout dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
208 | ) dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
209 | | - |
210 | | - |
211 | ; dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - |
212 | else | - |
213 | fputs_unlocked (executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
214 | dcgettext (((void *)0), executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
215 | "\n -b, --binary read in binary mode\n"executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
216 | , 5)executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
217 | ,executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
218 | stdoutexecuted 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
219 | )executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
220 | | 112 |
221 | | 112 |
222 | ;executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
223 | | - |
224 | printf ( | - |
225 | dcgettext (((void *)0), | - |
226 | " -c, --check read %s sums from the FILEs and check them\n" | - |
227 | , 5) | - |
228 | | - |
229 | , | - |
230 | "BLAKE2"); | - |
231 | | - |
232 | fputs_unlocked ( | - |
233 | dcgettext (((void *)0), | - |
234 | " -l, --length digest length in bits; must not exceed the maximum for\n the blake2 algorithm and must be a multiple of 8\n" | - |
235 | , 5) | - |
236 | , | - |
237 | stdout | - |
238 | ) | - |
239 | | - |
240 | | - |
241 | ; | - |
242 | | - |
243 | fputs_unlocked ( | - |
244 | dcgettext (((void *)0), | - |
245 | " --tag create a BSD-style checksum\n" | - |
246 | , 5) | - |
247 | , | - |
248 | stdout | - |
249 | ) | - |
250 | | - |
251 | ; | - |
252 | if ( | - |
253 | 0 | - |
254 | ) | - |
255 | fputs_unlocked ( dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
256 | dcgettext (((void *)0), dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
257 | " -t, --text read in text mode (default if reading tty stdin)\n" dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
258 | , 5) dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
259 | , dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
260 | stdout dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
261 | ) dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
262 | | - |
263 | ; dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - |
264 | else | - |
265 | fputs_unlocked (executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
266 | dcgettext (((void *)0), executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
267 | " -t, --text read in text mode (default)\n"executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
268 | , 5)executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
269 | ,executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
270 | stdoutexecuted 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
271 | )executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
272 | | 112 |
273 | ;executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
274 | fputs_unlocked ( | - |
275 | dcgettext (((void *)0), | - |
276 | "\nThe following five options are useful only when verifying checksums:\n --ignore-missing don't fail or report status for missing files\n --quiet don't print OK for each successfully verified file\n --status don't output anything, status code shows success\n --strict exit non-zero for improperly formatted checksum lines\n -w, --warn warn about improperly formatted checksum lines\n\n" | - |
277 | , 5) | - |
278 | , | - |
279 | stdout | - |
280 | ) | - |
281 | ; | - |
282 | fputs_unlocked ( | - |
283 | dcgettext (((void *)0), | - |
284 | " --help display this help and exit\n" | - |
285 | , 5) | - |
286 | , | - |
287 | stdout | - |
288 | ); | - |
289 | fputs_unlocked ( | - |
290 | dcgettext (((void *)0), | - |
291 | " --version output version information and exit\n" | - |
292 | , 5) | - |
293 | , | - |
294 | stdout | - |
295 | ); | - |
296 | printf ( | - |
297 | dcgettext (((void *)0), | - |
298 | "\nThe sums are computed as described in %s. When checking, the input\nshould be a former output of this program. The default mode is to print a\nline with checksum, a space, a character indicating input mode ('*' for binary,\n' ' for text or where binary is insignificant), and name for each FILE.\n" | - |
299 | , 5) | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | , | - |
306 | "RFC 7693"); | - |
307 | emit_ancillary_info ("b2sum"); | - |
308 | }executed 112 times by 7 tests: end of block Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 112 |
309 | | - |
310 | exit (status);executed 136 times by 7 tests: exit (status); Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 136 |
311 | } | - |
312 | static char * | - |
313 | filename_unescape (char *s, size_t s_len) | - |
314 | { | - |
315 | char *dst = s; | - |
316 | | - |
317 | for (size_t i = 0; i < s_lenTRUE | evaluated 8 times by 1 test | FALSE | evaluated 3 times by 1 test |
; i++) | 3-8 |
318 | { | - |
319 | switch (s[i]) | - |
320 | { | - |
321 | caseexecuted 3 times by 1 test: case '\\': '\\':executed 3 times by 1 test: case '\\': | 3 |
322 | if (i == s_len - 1TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
323 | { | - |
324 | | - |
325 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
326 | ((void *)0) never executed: return ((void *)0) ; | 0 |
327 | ; never executed: return ((void *)0) ; | 0 |
328 | } | - |
329 | ++i; | - |
330 | switch (s[i]) | - |
331 | { | - |
332 | caseexecuted 1 time by 1 test: case 'n': 'n':executed 1 time by 1 test: case 'n': | 1 |
333 | *dst++ = '\n'; | - |
334 | break;executed 1 time by 1 test: break; | 1 |
335 | caseexecuted 2 times by 1 test: case '\\': '\\':executed 2 times by 1 test: case '\\': | 2 |
336 | *dst++ = '\\'; | - |
337 | break;executed 2 times by 1 test: break; | 2 |
338 | default never executed: default: :never executed: default: | 0 |
339 | | - |
340 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
341 | ((void *)0) never executed: return ((void *)0) ; | 0 |
342 | ; never executed: return ((void *)0) ; | 0 |
343 | } | - |
344 | break;executed 3 times by 1 test: break; | 3 |
345 | | - |
346 | case never executed: case '\0': '\0':never executed: case '\0': | 0 |
347 | | - |
348 | return never executed: return ((void *)0) ; never executed: return ((void *)0) ; | 0 |
349 | ((void *)0) never executed: return ((void *)0) ; | 0 |
350 | ; never executed: return ((void *)0) ; | 0 |
351 | | - |
352 | defaultexecuted 5 times by 1 test: default: :executed 5 times by 1 test: default: | 5 |
353 | *dst++ = s[i]; | - |
354 | break;executed 5 times by 1 test: break; | 5 |
355 | } | - |
356 | } | - |
357 | if (dst < s + s_lenTRUE | evaluated 3 times by 1 test | FALSE | never evaluated |
) | 0-3 |
358 | *executed 3 times by 1 test: *dst = '\0'; dst = '\0';executed 3 times by 1 test: *dst = '\0'; | 3 |
359 | | - |
360 | returnexecuted 3 times by 1 test: return s; s;executed 3 times by 1 test: return s; | 3 |
361 | } | - |
362 | | - |
363 | | - |
364 | | - |
365 | static | - |
366 | _Bool | - |
367 | __attribute__ ((__pure__)) | - |
368 | hex_digits (unsigned char const *s) | - |
369 | { | - |
370 | for (unsigned int i = 0; i < digest_hex_bytesTRUE | evaluated 3682 times by 3 tests | FALSE | evaluated 78 times by 3 tests |
; i++) | 78-3682 |
371 | { | - |
372 | if (!TRUE | evaluated 2 times by 1 test | FALSE | evaluated 3680 times by 3 tests |
| 2-3680 |
373 | ((*__ctype_b_loc ())[(int) ((TRUE | evaluated 2 times by 1 test | FALSE | evaluated 3680 times by 3 tests |
| 2-3680 |
374 | *sTRUE | evaluated 2 times by 1 test | FALSE | evaluated 3680 times by 3 tests |
| 2-3680 |
375 | ))] & (unsigned short int) _ISxdigit)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 3680 times by 3 tests |
| 2-3680 |
376 | ) | - |
377 | returnexecuted 2 times by 1 test: return 0 ; executed 2 times by 1 test: return 0 ; | 2 |
378 | 0executed 2 times by 1 test: return 0 ; | 2 |
379 | ;executed 2 times by 1 test: return 0 ; | 2 |
380 | ++s; | - |
381 | }executed 3680 times by 3 tests: end of block | 3680 |
382 | returnexecuted 78 times by 3 tests: return *s == '\0'; *s == '\0';executed 78 times by 3 tests: return *s == '\0'; | 78 |
383 | } | - |
384 | | - |
385 | | - |
386 | | - |
387 | | - |
388 | | - |
389 | static | - |
390 | _Bool | - |
391 | | - |
392 | bsd_split_3 (char *s, size_t s_len, unsigned char **hex_digest, | - |
393 | char **file_name, | - |
394 | _Bool | - |
395 | escaped_filename) | - |
396 | { | - |
397 | size_t i; | - |
398 | | - |
399 | if (s_len == 0TRUE | evaluated 4 times by 3 tests | FALSE | evaluated 37 times by 3 tests |
) | 4-37 |
400 | returnexecuted 4 times by 3 tests: return 0 ; executed 4 times by 3 tests: return 0 ; | 4 |
401 | 0executed 4 times by 3 tests: return 0 ; | 4 |
402 | ;executed 4 times by 3 tests: return 0 ; | 4 |
403 | | - |
404 | | - |
405 | i = s_len - 1; | - |
406 | while (iTRUE | evaluated 2310 times by 3 tests | FALSE | never evaluated |
&& s[i] != ')'TRUE | evaluated 2273 times by 3 tests | FALSE | evaluated 37 times by 3 tests |
) | 0-2310 |
407 | i--;executed 2273 times by 3 tests: i--; | 2273 |
408 | | - |
409 | if (s[i] != ')'TRUE | never evaluated | FALSE | evaluated 37 times by 3 tests |
) | 0-37 |
410 | return never executed: return 0 ; never executed: return 0 ; | 0 |
411 | 0 never executed: return 0 ; | 0 |
412 | ; never executed: return 0 ; | 0 |
413 | | - |
414 | *file_name = s; | - |
415 | | - |
416 | if (escaped_filenameTRUE | evaluated 3 times by 1 test | FALSE | evaluated 34 times by 3 tests |
&& filename_unescape (s, i) == TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-34 |
417 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 3 times by 1 test |
| 0-3 |
418 | ) | - |
419 | return never executed: return 0 ; never executed: return 0 ; | 0 |
420 | 0 never executed: return 0 ; | 0 |
421 | ; never executed: return 0 ; | 0 |
422 | | - |
423 | s[i++] = '\0'; | - |
424 | | - |
425 | while (((TRUE | evaluated 23 times by 3 tests | FALSE | evaluated 37 times by 3 tests |
s[i]) == ' 'TRUE | evaluated 23 times by 3 tests | FALSE | evaluated 37 times by 3 tests |
|| (TRUE | never evaluated | FALSE | evaluated 37 times by 3 tests |
s[i]) == '\t'TRUE | never evaluated | FALSE | evaluated 37 times by 3 tests |
)) | 0-37 |
426 | i++;executed 23 times by 3 tests: i++; | 23 |
427 | | - |
428 | if (s[i] != '='TRUE | never evaluated | FALSE | evaluated 37 times by 3 tests |
) | 0-37 |
429 | return never executed: return 0 ; never executed: return 0 ; | 0 |
430 | 0 never executed: return 0 ; | 0 |
431 | ; never executed: return 0 ; | 0 |
432 | | - |
433 | i++; | - |
434 | | - |
435 | while (((TRUE | evaluated 37 times by 3 tests | FALSE | evaluated 37 times by 3 tests |
s[i]) == ' 'TRUE | evaluated 37 times by 3 tests | FALSE | evaluated 37 times by 3 tests |
|| (TRUE | never evaluated | FALSE | evaluated 37 times by 3 tests |
s[i]) == '\t'TRUE | never evaluated | FALSE | evaluated 37 times by 3 tests |
)) | 0-37 |
436 | i++;executed 37 times by 3 tests: i++; | 37 |
437 | | - |
438 | *hex_digest = (unsigned char *) &s[i]; | - |
439 | | - |
440 | returnexecuted 37 times by 3 tests: return hex_digits (*hex_digest); hex_digits (*hex_digest);executed 37 times by 3 tests: return hex_digits (*hex_digest); | 37 |
441 | } | - |
442 | | - |
443 | | - |
444 | | - |
445 | | - |
446 | | - |
447 | static | - |
448 | _Bool | - |
449 | | - |
450 | split_3 (char *s, size_t s_len, | - |
451 | unsigned char **hex_digest, int *binary, char **file_name) | - |
452 | { | - |
453 | | - |
454 | _Bool | - |
455 | escaped_filename = | - |
456 | 0 | - |
457 | ; | - |
458 | size_t algo_name_len; | - |
459 | | - |
460 | size_t i = 0; | - |
461 | while (((TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
s[i]) == ' 'TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
|| (TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
s[i]) == '\t'TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
)) | 0-95 |
462 | ++ never executed: ++i; i;never executed: ++i; | 0 |
463 | | - |
464 | if (s[i] == '\\'TRUE | evaluated 3 times by 1 test | FALSE | evaluated 92 times by 3 tests |
) | 3-92 |
465 | { | - |
466 | ++i; | - |
467 | escaped_filename = | - |
468 | 1 | - |
469 | ; | - |
470 | }executed 3 times by 1 test: end of block | 3 |
471 | | - |
472 | | - |
473 | | - |
474 | algo_name_len = strlen ("BLAKE2"); | - |
475 | if ((TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
476 | (__extension__ (__builtin_constant_p (TRUE | evaluated 95 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
477 | algo_name_lenTRUE | evaluated 95 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
478 | )TRUE | evaluated 95 times by 3 tests | FALSE | never evaluated |
&& ((__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
479 | s + iTRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
480 | )TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
&& strlen (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
481 | s + iTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
482 | ) < ((size_t) (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
483 | algo_name_lenTRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
484 | ))TRUE | never evaluated | FALSE | never evaluated |
) || (__builtin_constant_p (TRUE | evaluated 95 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
485 | "BLAKE2"TRUE | evaluated 95 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
486 | )TRUE | evaluated 95 times by 3 tests | FALSE | never evaluated |
&& strlen (TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
487 | "BLAKE2"TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
488 | ) < ((size_t) (TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
489 | algo_name_lenTRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
490 | ))TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
)) ? __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-95 |
491 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
492 | ) && __builtin_constant_p (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
493 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
494 | ) && (__s1_len = __builtin_strlen (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
495 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
496 | ), __s2_len = __builtin_strlen (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
497 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
498 | ), (!((size_t)(const void *)((TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
499 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
500 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
501 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
502 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
503 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
504 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
505 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
506 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
507 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
508 | , TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
509 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
510 | ) : (__builtin_constant_p (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
511 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
512 | ) && ((size_t)(const void *)((TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
513 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
514 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
515 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
516 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
517 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
518 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
519 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
520 | ) && ((size_t)(const void *)((TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
521 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
522 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
523 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
524 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
525 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
526 | , TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
527 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
528 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
529 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
530 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
531 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
532 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
533 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
534 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
535 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
536 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]); TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
537 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]); | 0-51 |
538 | ))[3] - __s2[3]);TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
539 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
540 | ) && ((size_t)(const void *)((TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
541 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
542 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
543 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
544 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
545 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
546 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
547 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
548 | ) && ((size_t)(const void *)((TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
549 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
550 | ) + 1) - (size_t)(const void *)(TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
551 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
552 | ) == 1) ? __builtin_strcmp (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
553 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
554 | , TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
555 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
556 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
557 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
558 | ); int __result = (((const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
559 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
560 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
561 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
562 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
563 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
564 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]); TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
565 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]); | 0-51 |
566 | ))[3] - __s2[3]);TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 0-51 |
567 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
568 | , TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
569 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
570 | )))); }) : strncmp (TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
571 | s + iTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
572 | , TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
573 | "BLAKE2"TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
574 | , TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
575 | algo_name_lenTRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
576 | ))) TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
| 44-51 |
577 | == 0)TRUE | evaluated 44 times by 3 tests | FALSE | evaluated 51 times by 3 tests |
) | 44-51 |
578 | { | - |
579 | i += algo_name_len; | - |
580 | | - |
581 | | - |
582 | char const *algo_name = &s[i - algo_name_len]; | - |
583 | | - |
584 | while (s[i]TRUE | evaluated 44 times by 1 test | FALSE | evaluated 2 times by 1 test |
&& ! ((TRUE | evaluated 6 times by 1 test | FALSE | evaluated 38 times by 1 test |
s[i]) == ' 'TRUE | evaluated 6 times by 1 test | FALSE | evaluated 38 times by 1 test |
|| (TRUE | never evaluated | FALSE | evaluated 38 times by 1 test |
s[i]) == '\t'TRUE | never evaluated | FALSE | evaluated 38 times by 1 test |
) && s[i] != '-'TRUE | evaluated 27 times by 1 test | FALSE | evaluated 11 times by 1 test |
&& s[i] != '('TRUE | evaluated 21 times by 1 test | FALSE | evaluated 6 times by 1 test |
) | 0-44 |
585 | ++executed 21 times by 1 test: ++i; i;executed 21 times by 1 test: ++i; | 21 |
586 | | - |
587 | _Bool | - |
588 | length_specified = s[i] == '-'; | - |
589 | | - |
590 | _Bool | - |
591 | openssl_format = s[i] == '('; | - |
592 | s[i++] = '\0'; | - |
593 | ptrdiff_t algo = argmatch (algo_name, algorithm_out_string, | - |
594 | ((void *)0) | - |
595 | , 0); | - |
596 | if (algo < 0TRUE | never evaluated | FALSE | evaluated 25 times by 1 test |
) | 0-25 |
597 | return never executed: return 0 ; never executed: return 0 ; | 0 |
598 | 0 never executed: return 0 ; | 0 |
599 | ; never executed: return 0 ; | 0 |
600 | else | - |
601 | b2_algorithm = algo;executed 25 times by 1 test: b2_algorithm = algo; | 25 |
602 | if (openssl_formatTRUE | evaluated 6 times by 1 test | FALSE | evaluated 19 times by 1 test |
) | 6-19 |
603 | s[--i] = '(';executed 6 times by 1 test: s[--i] = '('; | 6 |
604 | | - |
605 | if (length_specifiedTRUE | evaluated 11 times by 1 test | FALSE | evaluated 14 times by 1 test |
) | 11-14 |
606 | { | - |
607 | unsigned long int tmp_ulong; | - |
608 | if (xstrtoul (s + i, TRUE | evaluated 10 times by 1 test | FALSE | evaluated 1 time by 1 test |
| 1-10 |
609 | ((void *)0)TRUE | evaluated 10 times by 1 test | FALSE | evaluated 1 time by 1 test |
| 1-10 |
610 | , 0, &tmp_ulong, TRUE | evaluated 10 times by 1 test | FALSE | evaluated 1 time by 1 test |
| 1-10 |
611 | ((void *)0)TRUE | evaluated 10 times by 1 test | FALSE | evaluated 1 time by 1 test |
| 1-10 |
612 | ) == LONGINT_OKTRUE | evaluated 10 times by 1 test | FALSE | evaluated 1 time by 1 test |
| 1-10 |
613 | && 0 < tmp_ulongTRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
&& tmp_ulong <= blake2_max_len[b2_algorithm] * 8TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
| 0-10 |
614 | && tmp_ulong % 8 == 0TRUE | evaluated 10 times by 1 test | FALSE | never evaluated |
) | 0-10 |
615 | b2_length = tmp_ulong;executed 10 times by 1 test: b2_length = tmp_ulong; | 10 |
616 | else | - |
617 | returnexecuted 1 time by 1 test: return 0 ; executed 1 time by 1 test: return 0 ; | 1 |
618 | 0executed 1 time by 1 test: return 0 ; | 1 |
619 | ;executed 1 time by 1 test: return 0 ; | 1 |
620 | | - |
621 | while (((TRUE | evaluated 30 times by 1 test | FALSE | evaluated 10 times by 1 test |
unsigned int) (s[i]) - '0' <= 9)TRUE | evaluated 30 times by 1 test | FALSE | evaluated 10 times by 1 test |
) | 10-30 |
622 | ++executed 30 times by 1 test: ++i; i;executed 30 times by 1 test: ++i; | 30 |
623 | }executed 10 times by 1 test: end of block | 10 |
624 | else | - |
625 | b2_length = blake2_max_len[b2_algorithm] * 8;executed 14 times by 1 test: b2_length = blake2_max_len[b2_algorithm] * 8; | 14 |
626 | | - |
627 | digest_hex_bytes = b2_length / 4; | - |
628 | | - |
629 | if (s[i] == ' 'TRUE | evaluated 20 times by 3 tests | FALSE | evaluated 23 times by 3 tests |
) | 20-23 |
630 | ++executed 20 times by 3 tests: ++i; i;executed 20 times by 3 tests: ++i; | 20 |
631 | if (s[i] == '('TRUE | evaluated 41 times by 3 tests | FALSE | evaluated 2 times by 1 test |
) | 2-41 |
632 | { | - |
633 | ++i; | - |
634 | *binary = 0; | - |
635 | returnexecuted 41 times by 3 tests: return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename); bsd_split_3 (s + i, s_len - i,executed 41 times by 3 tests: return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename); | 41 |
636 | hex_digest, file_name, escaped_filename);executed 41 times by 3 tests: return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename); | 41 |
637 | } | - |
638 | returnexecuted 2 times by 1 test: return 0 ; executed 2 times by 1 test: return 0 ; | 2 |
639 | 0executed 2 times by 1 test: return 0 ; | 2 |
640 | ;executed 2 times by 1 test: return 0 ; | 2 |
641 | } | - |
642 | | - |
643 | | - |
644 | | - |
645 | | - |
646 | | - |
647 | if (s_len - i < min_digest_line_length + (s[i] == '\\')TRUE | evaluated 4 times by 1 test | FALSE | evaluated 47 times by 3 tests |
) | 4-47 |
648 | returnexecuted 4 times by 1 test: return 0 ; executed 4 times by 1 test: return 0 ; | 4 |
649 | 0executed 4 times by 1 test: return 0 ; | 4 |
650 | ;executed 4 times by 1 test: return 0 ; | 4 |
651 | | - |
652 | *hex_digest = (unsigned char *) &s[i]; | - |
653 | | - |
654 | | - |
655 | | - |
656 | unsigned char const *hp = *hex_digest; | - |
657 | digest_hex_bytes = 0; | - |
658 | while ( | - |
659 | ((*TRUE | evaluated 320 times by 1 test | FALSE | evaluated 4 times by 1 test |
__ctype_b_loc ())[(int) ((TRUE | evaluated 320 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4-320 |
660 | *hp++TRUE | evaluated 320 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4-320 |
661 | ))] & (unsigned short int) _ISxdigit)TRUE | evaluated 320 times by 1 test | FALSE | evaluated 4 times by 1 test |
| 4-320 |
662 | ) | - |
663 | digest_hex_bytes++;executed 320 times by 1 test: digest_hex_bytes++; | 320 |
664 | if (digest_hex_bytes < 2TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
|| digest_hex_bytes % 2TRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
| 0-4 |
665 | || blake2_max_len[b2_algorithm] * 2 < digest_hex_bytesTRUE | never evaluated | FALSE | evaluated 4 times by 1 test |
) | 0-4 |
666 | return never executed: return 0 ; never executed: return 0 ; | 0 |
667 | 0 never executed: return 0 ; | 0 |
668 | ; never executed: return 0 ; | 0 |
669 | b2_length = digest_hex_bytes * 4; | - |
670 | | - |
671 | | - |
672 | | - |
673 | | - |
674 | | - |
675 | i += digest_hex_bytes; | - |
676 | if (!((TRUE | evaluated 43 times by 2 tests | FALSE | evaluated 4 times by 2 tests |
s[i]) == ' 'TRUE | evaluated 43 times by 2 tests | FALSE | evaluated 4 times by 2 tests |
|| (TRUE | never evaluated | FALSE | evaluated 4 times by 2 tests |
s[i]) == '\t'TRUE | never evaluated | FALSE | evaluated 4 times by 2 tests |
)) | 0-43 |
677 | returnexecuted 4 times by 2 tests: return 0 ; executed 4 times by 2 tests: return 0 ; | 4 |
678 | 0executed 4 times by 2 tests: return 0 ; | 4 |
679 | ;executed 4 times by 2 tests: return 0 ; | 4 |
680 | | - |
681 | s[i++] = '\0'; | - |
682 | | - |
683 | if (! hex_digits (*hex_digest)TRUE | evaluated 2 times by 1 test | FALSE | evaluated 41 times by 2 tests |
) | 2-41 |
684 | returnexecuted 2 times by 1 test: return 0 ; executed 2 times by 1 test: return 0 ; | 2 |
685 | 0executed 2 times by 1 test: return 0 ; | 2 |
686 | ;executed 2 times by 1 test: return 0 ; | 2 |
687 | | - |
688 | | - |
689 | if ((TRUE | evaluated 3 times by 1 test | FALSE | evaluated 38 times by 2 tests |
s_len - i == 1)TRUE | evaluated 3 times by 1 test | FALSE | evaluated 38 times by 2 tests |
|| (s[i] != ' 'TRUE | evaluated 4 times by 1 test | FALSE | evaluated 34 times by 2 tests |
&& s[i] != '*'TRUE | evaluated 2 times by 1 test | FALSE | evaluated 2 times by 1 test |
)) | 2-38 |
690 | { | - |
691 | | - |
692 | | - |
693 | | - |
694 | | - |
695 | | - |
696 | | - |
697 | if (bsd_reversed == 0TRUE | evaluated 2 times by 1 test | FALSE | evaluated 3 times by 1 test |
) | 2-3 |
698 | returnexecuted 2 times by 1 test: return 0 ; executed 2 times by 1 test: return 0 ; | 2 |
699 | 0executed 2 times by 1 test: return 0 ; | 2 |
700 | ;executed 2 times by 1 test: return 0 ; | 2 |
701 | bsd_reversed = 1; | - |
702 | }executed 3 times by 1 test: end of block | 3 |
703 | else if (bsd_reversed != 1TRUE | evaluated 34 times by 2 tests | FALSE | evaluated 2 times by 1 test |
) | 2-34 |
704 | { | - |
705 | bsd_reversed = 0; | - |
706 | *binary = (s[i++] == '*'); | - |
707 | }executed 34 times by 2 tests: end of block | 34 |
708 | | - |
709 | | - |
710 | | - |
711 | *file_name = &s[i]; | - |
712 | | - |
713 | if (escaped_filenameTRUE | never evaluated | FALSE | evaluated 39 times by 2 tests |
) | 0-39 |
714 | return never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ; filename_unescape (&s[i], s_len - i) != never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ; | 0 |
715 | ((void *)0) never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ; | 0 |
716 | ; never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ; | 0 |
717 | | - |
718 | returnexecuted 39 times by 2 tests: return 1 ; executed 39 times by 2 tests: return 1 ; | 39 |
719 | 1executed 39 times by 2 tests: return 1 ; | 39 |
720 | ;executed 39 times by 2 tests: return 1 ; | 39 |
721 | } | - |
722 | | - |
723 | | - |
724 | | - |
725 | static void | - |
726 | print_filename (char const *file, | - |
727 | _Bool | - |
728 | escape) | - |
729 | { | - |
730 | if (! escapeTRUE | evaluated 1865 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| FALSE | evaluated 10 times by 2 tests |
) | 10-1865 |
731 | { | - |
732 | fputs_unlocked (file, | - |
733 | stdout | - |
734 | ); | - |
735 | return;executed 1865 times by 7 tests: return; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 1865 |
736 | } | - |
737 | | - |
738 | while (*TRUE | evaluated 45 times by 2 tests | FALSE | evaluated 10 times by 2 tests |
fileTRUE | evaluated 45 times by 2 tests | FALSE | evaluated 10 times by 2 tests |
) | 10-45 |
739 | { | - |
740 | switch (*file) | - |
741 | { | - |
742 | caseexecuted 6 times by 2 tests: case '\n': '\n':executed 6 times by 2 tests: case '\n': | 6 |
743 | fputs_unlocked ("\\n", | - |
744 | stdout | - |
745 | ); | - |
746 | break;executed 6 times by 2 tests: break; | 6 |
747 | | - |
748 | caseexecuted 6 times by 2 tests: case '\\': '\\':executed 6 times by 2 tests: case '\\': | 6 |
749 | fputs_unlocked ("\\\\", | - |
750 | stdout | - |
751 | ); | - |
752 | break;executed 6 times by 2 tests: break; | 6 |
753 | | - |
754 | defaultexecuted 33 times by 2 tests: default: :executed 33 times by 2 tests: default: | 33 |
755 | putchar_unlocked (*file); | - |
756 | break;executed 33 times by 2 tests: break; | 33 |
757 | } | - |
758 | file++; | - |
759 | }executed 45 times by 2 tests: end of block | 45 |
760 | }executed 10 times by 2 tests: end of block | 10 |
761 | static | - |
762 | _Bool | - |
763 | | - |
764 | digest_file (const char *filename, int *binary, unsigned char *bin_result, | - |
765 | | - |
766 | _Bool | - |
767 | *missing) | - |
768 | { | - |
769 | FILE *fp; | - |
770 | int err; | - |
771 | | - |
772 | _Bool | - |
773 | is_stdin = ( | - |
774 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( | - |
775 | filename | - |
776 | ) && __builtin_constant_p ( | - |
777 | "-" | - |
778 | ) && (__s1_len = __builtin_strlen ( | - |
779 | filename | - |
780 | ), __s2_len = __builtin_strlen ( | - |
781 | "-" | - |
782 | ), (!((size_t)(const void *)(( | - |
783 | filename | - |
784 | ) + 1) - (size_t)(const void *)( | - |
785 | filename | - |
786 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(( | - |
787 | "-" | - |
788 | ) + 1) - (size_t)(const void *)( | - |
789 | "-" | - |
790 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp ( | - |
791 | filename | - |
792 | , | - |
793 | "-" | - |
794 | ) : (__builtin_constant_p ( | - |
795 | filename | - |
796 | ) && ((size_t)(const void *)(( | - |
797 | filename | - |
798 | ) + 1) - (size_t)(const void *)( | - |
799 | filename | - |
800 | ) == 1) && (__s1_len = __builtin_strlen ( | - |
801 | filename | - |
802 | ), __s1_len < 4) ? (__builtin_constant_p ( | - |
803 | "-" | - |
804 | ) && ((size_t)(const void *)(( | - |
805 | "-" | - |
806 | ) + 1) - (size_t)(const void *)( | - |
807 | "-" | - |
808 | ) == 1) ? __builtin_strcmp ( | - |
809 | filename | - |
810 | , | - |
811 | "-" | - |
812 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - |
813 | "-" | - |
814 | ); int __result = (((const unsigned char *) (const char *) ( | - |
815 | filename | - |
816 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
817 | filename | - |
818 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
819 | filename | - |
820 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0 |
821 | filename never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0 |
822 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p ( | 0 |
823 | "-" | - |
824 | ) && ((size_t)(const void *)(( | - |
825 | "-" | - |
826 | ) + 1) - (size_t)(const void *)( | - |
827 | "-" | - |
828 | ) == 1) && (__s2_len = __builtin_strlen ( | - |
829 | "-" | - |
830 | ), __s2_len < 4) ? (__builtin_constant_p ( | - |
831 | filename | - |
832 | ) && ((size_t)(const void *)(( | - |
833 | filename | - |
834 | ) + 1) - (size_t)(const void *)( | - |
835 | filename | - |
836 | ) == 1) ? __builtin_strcmp ( | - |
837 | filename | - |
838 | , | - |
839 | "-" | - |
840 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - |
841 | filename | - |
842 | ); int __result = (((const unsigned char *) (const char *) ( | - |
843 | "-" | - |
844 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | evaluated 1886 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| FALSE | never evaluated |
&& __result == 0TRUE | evaluated 13 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| FALSE | evaluated 1873 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
) { __result = (((const unsigned char *) (const char *) ( | 0-1886 |
845 | "-" | - |
846 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | evaluated 13 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0-13 |
847 | "-" | - |
848 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 |
849 | "-" never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 |
850 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); }never executed: end of block }executed 13 times by 7 tests: end of block Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
__result; }))) : __builtin_strcmp ( | 0-13 |
851 | filename | - |
852 | , | - |
853 | "-" | - |
854 | )))); }) | - |
855 | == 0); | - |
856 | | - |
857 | *missing = | - |
858 | 0 | - |
859 | ; | - |
860 | | - |
861 | if (is_stdinTRUE | evaluated 13 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| FALSE | evaluated 1873 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
) | 13-1873 |
862 | { | - |
863 | have_read_stdin = | - |
864 | 1 | - |
865 | ; | - |
866 | fp = | - |
867 | stdin | - |
868 | ; | - |
869 | if ( | - |
870 | 0 | - |
871 | && * dead code: *binary binarydead code: *binary ) | - |
872 | { dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
873 | if (*binary < 0) dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
874 | *binary = ! isatty ( dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
875 | 0 dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
876 | ); dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
877 | if (*binary) dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
878 | xset_binary_mode ( dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
879 | 0 dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
880 | , dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
881 | 0 dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
882 | ); dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
883 | } dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - |
884 | }executed 13 times by 7 tests: end of block Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 13 |
885 | else | - |
886 | { | - |
887 | fp = fopen_safer (filename, ( | - |
888 | 0 | - |
889 | && *binary ? "rb" : "r")); | - |
890 | if (fp == TRUE | evaluated 6 times by 1 test | FALSE | evaluated 1867 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
| 6-1867 |
891 | ((void *)0)TRUE | evaluated 6 times by 1 test | FALSE | evaluated 1867 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
| 6-1867 |
892 | ) | - |
893 | { | - |
894 | if (ignore_missingTRUE | evaluated 4 times by 1 test | FALSE | evaluated 2 times by 1 test |
&& | 2-4 |
895 | (*TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
__errno_location ()) TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
| 0-4 |
896 | == TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
| 0-4 |
897 | 2TRUE | evaluated 4 times by 1 test | FALSE | never evaluated |
| 0-4 |
898 | ) | - |
899 | { | - |
900 | *missing = | - |
901 | 1 | - |
902 | ; | - |
903 | returnexecuted 4 times by 1 test: return 1 ; executed 4 times by 1 test: return 1 ; | 4 |
904 | 1executed 4 times by 1 test: return 1 ; | 4 |
905 | ;executed 4 times by 1 test: return 1 ; | 4 |
906 | } | - |
907 | error (0, | - |
908 | (*__errno_location ()) | - |
909 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - |
910 | returnexecuted 2 times by 1 test: return 0 ; executed 2 times by 1 test: return 0 ; | 2 |
911 | 0executed 2 times by 1 test: return 0 ; | 2 |
912 | ;executed 2 times by 1 test: return 0 ; | 2 |
913 | } | - |
914 | }executed 1867 times by 7 tests: end of block Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 1867 |
915 | | - |
916 | fadvise (fp, FADVISE_SEQUENTIAL); | - |
917 | | - |
918 | | - |
919 | err = blake2fns[b2_algorithm] (fp, bin_result, b2_length / 8); | - |
920 | | - |
921 | | - |
922 | | - |
923 | if (errTRUE | never evaluated | FALSE | evaluated 1880 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
) | 0-1880 |
924 | { | - |
925 | error (0, | - |
926 | (*__errno_location ()) | - |
927 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - |
928 | if (fp != TRUE | never evaluated | FALSE | never evaluated |
| 0 |
929 | stdinTRUE | never evaluated | FALSE | never evaluated |
| 0 |
930 | ) | - |
931 | | - |
932 | rpl_fclose never executed: rpl_fclose (fp); | 0 |
933 | (fp); never executed: rpl_fclose (fp); | 0 |
934 | return never executed: return 0 ; never executed: return 0 ; | 0 |
935 | 0 never executed: return 0 ; | 0 |
936 | ; never executed: return 0 ; | 0 |
937 | } | - |
938 | | - |
939 | if (!is_stdinTRUE | evaluated 1867 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| FALSE | evaluated 13 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
&& | 13-1867 |
940 | rpl_fclose TRUE | never evaluated | FALSE | evaluated 1867 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
| 0-1867 |
941 | (fp) != 0TRUE | never evaluated | FALSE | evaluated 1867 times by 7 testsEvaluated by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
|
) | 0-1867 |
942 | { | - |
943 | error (0, | - |
944 | (*__errno_location ()) | - |
945 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - |
946 | return never executed: return 0 ; never executed: return 0 ; | 0 |
947 | 0 never executed: return 0 ; | 0 |
948 | ; never executed: return 0 ; | 0 |
949 | } | - |
950 | | - |
951 | returnexecuted 1880 times by 7 tests: return 1 ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
executed 1880 times by 7 tests: return 1 ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 1880 |
952 | 1executed 1880 times by 7 tests: return 1 ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 1880 |
953 | ;executed 1880 times by 7 tests: return 1 ; Executed by:- b2sum
- md5sum
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
| 1880 |
954 | } | - |
955 | | - |
956 | static | - |
957 | _Bool | - |
958 | | - |
959 | digest_check (const char *checkfile_name) | - |
960 | { | - |
961 | FILE *checkfile_stream; | - |
962 | uintmax_t n_misformatted_lines = 0; | - |
963 | uintmax_t n_improperly_formatted_lines = 0; | - |
964 | uintmax_t n_mismatched_checksums = 0; | - |
965 | uintmax_t n_open_or_read_failures = 0; | - |
966 | | - |
967 | _Bool | - |
968 | properly_formatted_lines = | - |
969 | 0 | - |
970 | ; | - |
971 | | - |
972 | _Bool | - |
973 | matched_checksums = | - |
974 | 0 | - |
975 | ; | - |
976 | unsigned char bin_buffer_unaligned[(512 / 8) + 8]; | - |
977 | | - |
978 | unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, 8); | - |
979 | uintmax_t line_number; | - |
980 | char *line; | - |
981 | size_t line_chars_allocated; | - |
982 | | - |
983 | _Bool | - |
984 | is_stdin = ( | - |
985 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( | - |
986 | checkfile_name | - |
987 | ) && __builtin_constant_p ( | - |
988 | "-" | - |
989 | ) && (__s1_len = __builtin_strlen ( | - |
990 | checkfile_name | - |
991 | ), __s2_len = __builtin_strlen ( | - |
992 | "-" | - |
993 | ), (!((size_t)(const void *)(( | - |
994 | checkfile_name | - |
995 | ) + 1) - (size_t)(const void *)( | - |
996 | checkfile_name | - |
997 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(( | - |
998 | "-" | - |
999 | ) + 1) - (size_t)(const void *)( | - |
1000 | "-" | - |
1001 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp ( | - |
1002 | checkfile_name | - |
1003 | , | - |
1004 | "-" | - |
1005 | ) : (__builtin_constant_p ( | - |
1006 | checkfile_name | - |
1007 | ) && ((size_t)(const void *)(( | - |
1008 | checkfile_name | - |
1009 | ) + 1) - (size_t)(const void *)( | - |
1010 | checkfile_name | - |
1011 | ) == 1) && (__s1_len = __builtin_strlen ( | - |
1012 | checkfile_name | - |
1013 | ), __s1_len < 4) ? (__builtin_constant_p ( | - |
1014 | "-" | - |
1015 | ) && ((size_t)(const void *)(( | - |
1016 | "-" | - |
1017 | ) + 1) - (size_t)(const void *)( | - |
1018 | "-" | - |
1019 | ) == 1) ? __builtin_strcmp ( | - |
1020 | checkfile_name | - |
1021 | , | - |
1022 | "-" | - |
1023 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - |
1024 | "-" | - |
1025 | ); int __result = (((const unsigned char *) (const char *) ( | - |
1026 | checkfile_name | - |
1027 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
1028 | checkfile_name | - |
1029 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0 |
1030 | checkfile_name | - |
1031 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]); | 0 |
1032 | checkfile_name never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]); | 0 |
1033 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p ( | 0 |
1034 | "-" | - |
1035 | ) && ((size_t)(const void *)(( | - |
1036 | "-" | - |
1037 | ) + 1) - (size_t)(const void *)( | - |
1038 | "-" | - |
1039 | ) == 1) && (__s2_len = __builtin_strlen ( | - |
1040 | "-" | - |
1041 | ), __s2_len < 4) ? (__builtin_constant_p ( | - |
1042 | checkfile_name | - |
1043 | ) && ((size_t)(const void *)(( | - |
1044 | checkfile_name | - |
1045 | ) + 1) - (size_t)(const void *)( | - |
1046 | checkfile_name | - |
1047 | ) == 1) ? __builtin_strcmp ( | - |
1048 | checkfile_name | - |
1049 | , | - |
1050 | "-" | - |
1051 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - |
1052 | checkfile_name | - |
1053 | ); int __result = (((const unsigned char *) (const char *) ( | - |
1054 | "-" | - |
1055 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | evaluated 41 times by 3 tests | FALSE | never evaluated |
&& __result == 0TRUE | evaluated 1 time by 1 test | FALSE | evaluated 40 times by 3 tests |
) { __result = (((const unsigned char *) (const char *) ( | 0-41 |
1056 | "-" | - |
1057 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | evaluated 1 time by 1 test |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) ( | 0-1 |
1058 | "-" | - |
1059 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 |
1060 | "-" never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 |
1061 | ))[3] - __s2[3]); never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); }never executed: end of block }executed 1 time by 1 test: end of block __result; }))) : __builtin_strcmp ( | 0-1 |
1062 | checkfile_name | - |
1063 | , | - |
1064 | "-" | - |
1065 | )))); }) | - |
1066 | == 0); | - |
1067 | | - |
1068 | if (is_stdinTRUE | evaluated 1 time by 1 test | FALSE | evaluated 40 times by 3 tests |
) | 1-40 |
1069 | { | - |
1070 | have_read_stdin = | - |
1071 | 1 | - |
1072 | ; | - |
1073 | checkfile_name = | - |
1074 | dcgettext (((void *)0), | - |
1075 | "standard input" | - |
1076 | , 5) | - |
1077 | ; | - |
1078 | checkfile_stream = | - |
1079 | stdin | - |
1080 | ; | - |
1081 | }executed 1 time by 1 test: end of block | 1 |
1082 | else | - |
1083 | { | - |
1084 | checkfile_stream = fopen_safer (checkfile_name, "r"); | - |
1085 | if (checkfile_stream == TRUE | never evaluated | FALSE | evaluated 40 times by 3 tests |
| 0-40 |
1086 | ((void *)0)TRUE | never evaluated | FALSE | evaluated 40 times by 3 tests |
| 0-40 |
1087 | ) | - |
1088 | { | - |
1089 | error (0, | - |
1090 | (*__errno_location ()) | - |
1091 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); | - |
1092 | return never executed: return 0 ; never executed: return 0 ; | 0 |
1093 | 0 never executed: return 0 ; | 0 |
1094 | ; never executed: return 0 ; | 0 |
1095 | } | - |
1096 | }executed 40 times by 3 tests: end of block | 40 |
1097 | | - |
1098 | line_number = 0; | - |
1099 | line = | - |
1100 | ((void *)0) | - |
1101 | ; | - |
1102 | line_chars_allocated = 0; | - |
1103 | do | - |
1104 | { | - |
1105 | char *filename ; | - |
1106 | int binary; | - |
1107 | unsigned char *hex_digest ; | - |
1108 | ssize_t line_length; | - |
1109 | | - |
1110 | ++line_number; | - |
1111 | if (line_number == 0TRUE | never evaluated | FALSE | evaluated 134 times by 3 tests |
) | 0-134 |
1112 | (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; !!sizeof (struct { _Static_assert (never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1113 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1114 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1115 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1116 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1117 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1118 | "%s: too many checksum lines" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1119 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1120 | , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1121 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1122 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1123 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1124 | , 0, never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1125 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1126 | "%s: too many checksum lines" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1127 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1128 | , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1129 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1130 | ) ? (void) 0 : __builtin_unreachable ())))) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1131 | ; never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"%s: too many checksum lines\", 5), quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), assume (false))" ")"); int _gl_dummy; }...)), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , 0, dcgettext (((void *)0), "%s: too many checksum lines" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)), (( 0 ) ? (void) 0 : __builtin_unreachable ())))) ; | 0 |
1132 | | - |
1133 | line_length = getline (&line, &line_chars_allocated, checkfile_stream); | - |
1134 | if (line_length <= 0TRUE | evaluated 39 times by 3 tests | FALSE | evaluated 95 times by 3 tests |
) | 39-95 |
1135 | break;executed 39 times by 3 tests: break; | 39 |
1136 | | - |
1137 | | - |
1138 | if (line[0] == '#'TRUE | never evaluated | FALSE | evaluated 95 times by 3 tests |
) | 0-95 |
1139 | continue; never executed: continue; | 0 |
1140 | | - |
1141 | | - |
1142 | if (line[line_length - 1] == '\n'TRUE | evaluated 93 times by 3 tests | FALSE | evaluated 2 times by 2 tests |
) | 2-93 |
1143 | line[--line_length] = '\0';executed 93 times by 3 tests: line[--line_length] = '\0'; | 93 |
1144 | | - |
1145 | if (! (split_3 (line, line_length, &hex_digest, &binary, &filename)TRUE | evaluated 76 times by 3 tests | FALSE | evaluated 19 times by 3 tests |
| 19-76 |
1146 | && ! (is_stdinTRUE | evaluated 2 times by 1 test | FALSE | evaluated 74 times by 3 tests |
&& (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-74 |
1147 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1148 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1149 | ) && __builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1150 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1151 | ) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1152 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1153 | ), __s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1154 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1155 | ), (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1156 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1157 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1158 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1159 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1160 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1161 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1162 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1163 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1164 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1165 | , TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1166 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1167 | ) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1168 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1169 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1170 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1171 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1172 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1173 | ) == 1) && (__s1_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1174 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1175 | ), __s1_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1176 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1177 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1178 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1179 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1180 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1181 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1182 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1183 | , TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1184 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1185 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1186 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1187 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1188 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1189 | ))[0] - __s2[0]); if (__s1_len > 0TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1190 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1191 | ))[1] - __s2[1]); if (__s1_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1192 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1193 | ))[2] - __s2[2]); if (__s1_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1194 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0-2 |
1195 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1196 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1197 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1198 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1199 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1200 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1201 | ) == 1) && (__s2_len = __builtin_strlen (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1202 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1203 | ), __s2_len < 4) ? (__builtin_constant_p (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1204 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1205 | ) && ((size_t)(const void *)((TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1206 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1207 | ) + 1) - (size_t)(const void *)(TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1208 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1209 | ) == 1) ? __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1210 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1211 | , TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1212 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1213 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1214 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1215 | ); int __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1216 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1217 | ))[0] - __s2[0]); if (__s2_len > 0TRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1218 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1219 | ))[1] - __s2[1]); if (__s2_len > 1TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) { __result = (((const unsigned char *) (const char *) (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1220 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1221 | ))[2] - __s2[2]); if (__s2_len > 2TRUE | never evaluated | FALSE | never evaluated |
&& __result == 0TRUE | never evaluated | FALSE | never evaluated |
) __result = (((const unsigned char *) (const char *) (never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1222 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-2 |
1223 | ))[3] - __s2[3]);TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); }never executed: end of block }never executed: end of block __result; }))) : __builtin_strcmp (TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1224 | filenameTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1225 | , TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1226 | "-"TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1227 | )))); }) TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
| 0-2 |
1228 | == 0)TRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
))) | 0-2 |
1229 | { | - |
1230 | ++n_misformatted_lines; | - |
1231 | | - |
1232 | if (warnTRUE | evaluated 1 time by 1 test | FALSE | evaluated 18 times by 3 tests |
) | 1-18 |
1233 | { | - |
1234 | error (0, 0, | - |
1235 | | - |
1236 | dcgettext (((void *)0), | - |
1237 | "%s: %" | - |
1238 | "l" "u" | - |
1239 | ": improperly formatted %s checksum line" | - |
1240 | , 5) | - |
1241 | | - |
1242 | , | - |
1243 | quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name), line_number, | - |
1244 | "BLAKE2"); | - |
1245 | }executed 1 time by 1 test: end of block | 1 |
1246 | | - |
1247 | ++n_improperly_formatted_lines; | - |
1248 | }executed 19 times by 3 tests: end of block | 19 |
1249 | else | - |
1250 | { | - |
1251 | static const char bin2hex[] = { '0', '1', '2', '3', | - |
1252 | '4', '5', '6', '7', | - |
1253 | '8', '9', 'a', 'b', | - |
1254 | 'c', 'd', 'e', 'f' }; | - |
1255 | | - |
1256 | _Bool | - |
1257 | ok; | - |
1258 | | - |
1259 | _Bool | - |
1260 | missing; | - |
1261 | | - |
1262 | | - |
1263 | | - |
1264 | _Bool | - |
1265 | needs_escape = ! status_onlyTRUE | evaluated 71 times by 3 tests | FALSE | evaluated 5 times by 2 tests |
&& | 5-71 |
1266 | (TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
__extension__ (__builtin_constant_p (TRUE | evaluated 71 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 0-71 |
1267 | '\n'TRUE | evaluated 71 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 0-71 |
1268 | )TRUE | evaluated 71 times by 3 tests | FALSE | never evaluated |
&& !__builtin_constant_p (TRUE | evaluated 71 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 0-71 |
1269 | filenameTRUE | evaluated 71 times by 3 tests | FALSE | never evaluated |
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 0-71 |
1270 | )TRUE | evaluated 71 times by 3 tests | FALSE | never evaluated |
&& (TRUE | never evaluated | FALSE | evaluated 71 times by 3 tests |
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 0-71 |
1271 | '\n'TRUE | never evaluated | FALSE | evaluated 71 times by 3 tests |
TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 0-71 |
1272 | ) == '\0'TRUE | never evaluated | FALSE | evaluated 71 times by 3 tests |
? (char *) __rawmemchr (TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 0-71 |
1273 | filenameTRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1274 | , TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1275 | '\n'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1276 | ) : __builtin_strchr (TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1277 | filenameTRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1278 | , TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1279 | '\n'TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1280 | )))TRUE | evaluated 1 time by 1 test | FALSE | evaluated 70 times by 3 tests |
| 1-70 |
1281 | ; | - |
1282 | | - |
1283 | properly_formatted_lines = | - |
1284 | 1 | - |
1285 | ; | - |
1286 | | - |
1287 | ok = digest_file (filename, &binary, bin_buffer, &missing); | - |
1288 | | - |
1289 | if (!okTRUE | evaluated 2 times by 1 test | FALSE | evaluated 74 times by 3 tests |
) | 2-74 |
1290 | { | - |
1291 | ++n_open_or_read_failures; | - |
1292 | if (!status_onlyTRUE | evaluated 2 times by 1 test | FALSE | never evaluated |
) | 0-2 |
1293 | { | - |
1294 | if (needs_escapeTRUE | never evaluated | FALSE | evaluated 2 times by 1 test |
) | 0-2 |
1295 | putchar_unlocked ('\\'); never executed: putchar_unlocked ('\\'); | 0 |
1296 | print_filename (filename, needs_escape); | - |
1297 | printf (": %s\n", | - |
1298 | dcgettext (((void *)0), | - |
1299 | "FAILED open or read" | - |
1300 | , 5) | - |
1301 | ); | - |
1302 | }executed 2 times by 1 test: end of block | 2 |
1303 | }executed 2 times by 1 test: end of block | 2 |
1304 | else if (ignore_missingTRUE | evaluated 8 times by 1 test | FALSE | evaluated 66 times by 3 tests |
&& missingTRUE | evaluated 4 times by 1 test | FALSE | evaluated 4 times by 1 test |
) | 4-66 |
1305 | { | - |
1306 | | - |
1307 | ; | - |
1308 | }executed 4 times by 1 test: end of block | 4 |
1309 | else | - |
1310 | { | - |
1311 | size_t digest_bin_bytes = digest_hex_bytes / 2; | - |
1312 | size_t cnt; | - |
1313 | | - |
1314 | | - |
1315 | | - |
1316 | for (cnt = 0; cnt < digest_bin_bytesTRUE | evaluated 1554 times by 3 tests | FALSE | evaluated 60 times by 3 tests |
; ++cnt) | 60-1554 |
1317 | { | - |
1318 | if ( | - |
1319 | (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
__extension__ ({ int __res; if (sizeof (TRUE | never evaluated | FALSE | evaluated 1554 times by 3 tests |
TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 0-1554 |
1320 | hex_digest[2 * cnt]TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
TRUE | never evaluated | FALSE | evaluated 1554 times by 3 tests |
| 0-1554 |
1321 | ) > 1TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
TRUE | never evaluated | FALSE | evaluated 1554 times by 3 tests |
) { if (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 0-1554 |
1322 | hex_digest[2 * cnt]TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
TRUE | never evaluated | FALSE | never evaluated |
| 0-1544 |
1323 | )TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
TRUE | never evaluated | FALSE | never evaluated |
) { int __c = (TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1324 | hex_digest[2 * cnt]TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 10-1544 |
1325 | ); __res = __c < -128TRUE | never evaluated | FALSE | never evaluated |
|| __c > 255TRUE | never evaluated | FALSE | never evaluated |
? __c : (*__ctype_tolower_loc ())[__c]; }never executed: end of block else __res = tolower (never executed: __res = tolower ( hex_digest[2 * cnt] ); TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1326 | hex_digest[2 * cnt]TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
never executed: __res = tolower ( hex_digest[2 * cnt] ); | 0-1544 |
1327 | );TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
never executed: __res = tolower ( hex_digest[2 * cnt] ); } else __res = (*__ctype_tolower_loc ())[(int) (executed 1554 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt] )]; | 0-1554 |
1328 | hex_digest[2 * cnt]TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
executed 1554 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt] )]; | 10-1554 |
1329 | )]; __res; }))TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 10-1554 |
1330 | TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 10-1544 |
1331 | != bin2hex[bin_buffer[cnt] >> 4]TRUE | evaluated 10 times by 2 tests | FALSE | evaluated 1544 times by 3 tests |
| 10-1544 |
1332 | || (TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1333 | (__extension__ ({ int __res; if (sizeof (TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1334 | hex_digest[2 * cnt + 1]TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1335 | ) > 1) { if (__builtin_constant_p (TRUE | never evaluated | FALSE | never evaluated |
TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1336 | hex_digest[2 * cnt + 1]TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
TRUE | never evaluated | FALSE | never evaluated |
| 0-1544 |
1337 | )TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
TRUE | never evaluated | FALSE | never evaluated |
) { int __c = (TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1338 | hex_digest[2 * cnt + 1]TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1339 | ); __res = __c < -128TRUE | never evaluated | FALSE | never evaluated |
|| __c > 255TRUE | never evaluated | FALSE | never evaluated |
? __c : (*__ctype_tolower_loc ())[__c]; }never executed: end of block else __res = tolower (never executed: __res = tolower ( hex_digest[2 * cnt + 1] ); TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
| 0-1544 |
1340 | hex_digest[2 * cnt + 1]TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
never executed: __res = tolower ( hex_digest[2 * cnt + 1] ); | 0-1544 |
1341 | );TRUE | never evaluated | FALSE | evaluated 1544 times by 3 tests |
never executed: __res = tolower ( hex_digest[2 * cnt + 1] ); } else __res = (*__ctype_tolower_loc ())[(int) (executed 1544 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )]; |