Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/coreutils/src/src/md5sum.c |
Switch to Source code | Preprocessed file |
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 !=
| 24-112 | ||||||||||||||||||||||||||||||||||||||||||
175 | 0
| 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: while (0);end of block Executed by:
| 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:
| 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:
| 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:
| 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:
| 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:
| 112 | ||||||||||||||||||||||||||||||||||||||||||
218 | stdout executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ; Executed by:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 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:
| 112 | ||||||||||||||||||||||||||||||||||||||||||
270 | stdout executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ; Executed by:
| 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:
| 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:
| 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:
| 112 | ||||||||||||||||||||||||||||||||||||||||||
309 | - | |||||||||||||||||||||||||||||||||||||||||||
310 | exit (status); executed 136 times by 7 tests: exit (status); Executed by:
| 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_len
| 3-8 | ||||||||||||||||||||||||||||||||||||||||||
318 | { | - | ||||||||||||||||||||||||||||||||||||||||||
319 | switch (s[i]) | - | ||||||||||||||||||||||||||||||||||||||||||
320 | { | - | ||||||||||||||||||||||||||||||||||||||||||
321 | case executed 3 times by 1 test: '\\':case '\\': Executed by:
executed 3 times by 1 test: case '\\': Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
322 | if (i == s_len - 1
| 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 | case executed 1 time by 1 test: 'n':case 'n': Executed by:
executed 1 time by 1 test: case 'n': Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
333 | *dst++ = '\n'; | - | ||||||||||||||||||||||||||||||||||||||||||
334 | break; executed 1 time by 1 test: break; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
335 | case executed 2 times by 1 test: '\\':case '\\': Executed by:
executed 2 times by 1 test: case '\\': Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
336 | *dst++ = '\\'; | - | ||||||||||||||||||||||||||||||||||||||||||
337 | break; executed 2 times by 1 test: break; Executed by:
| 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; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
345 | - | |||||||||||||||||||||||||||||||||||||||||||
346 | case never executed: '\0':case '\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 | default executed 5 times by 1 test: :default: Executed by:
executed 5 times by 1 test: default: Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
353 | *dst++ = s[i]; | - | ||||||||||||||||||||||||||||||||||||||||||
354 | break; executed 5 times by 1 test: break; Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
355 | } | - | ||||||||||||||||||||||||||||||||||||||||||
356 | } | - | ||||||||||||||||||||||||||||||||||||||||||
357 | if (dst < s + s_len
| 0-3 | ||||||||||||||||||||||||||||||||||||||||||
358 | * executed 3 times by 1 test: dst = '\0';*dst = '\0'; Executed by:
executed 3 times by 1 test: *dst = '\0'; Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
359 | - | |||||||||||||||||||||||||||||||||||||||||||
360 | return executed 3 times by 1 test: s;return s; Executed by:
executed 3 times by 1 test: return s; Executed by:
| 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_bytes
| 78-3682 | ||||||||||||||||||||||||||||||||||||||||||
371 | { | - | ||||||||||||||||||||||||||||||||||||||||||
372 | if (!
| 2-3680 | ||||||||||||||||||||||||||||||||||||||||||
373 | ((*__ctype_b_loc ())[(int) ((
| 2-3680 | ||||||||||||||||||||||||||||||||||||||||||
374 | *s
| 2-3680 | ||||||||||||||||||||||||||||||||||||||||||
375 | ))] & (unsigned short int) _ISxdigit)
| 2-3680 | ||||||||||||||||||||||||||||||||||||||||||
376 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
377 | return executed 2 times by 1 test: return 0 ; Executed by:
executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
378 | 0 executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
379 | ; executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
380 | ++s; | - | ||||||||||||||||||||||||||||||||||||||||||
381 | } executed 3680 times by 3 tests: end of block Executed by:
| 3680 | ||||||||||||||||||||||||||||||||||||||||||
382 | return executed 78 times by 3 tests: *s == '\0';return *s == '\0'; Executed by:
executed 78 times by 3 tests: return *s == '\0'; Executed by:
| 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 == 0
| 4-37 | ||||||||||||||||||||||||||||||||||||||||||
400 | return executed 4 times by 3 tests: return 0 ; Executed by:
executed 4 times by 3 tests: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
401 | 0 executed 4 times by 3 tests: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
402 | ; executed 4 times by 3 tests: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
403 | - | |||||||||||||||||||||||||||||||||||||||||||
404 | - | |||||||||||||||||||||||||||||||||||||||||||
405 | i = s_len - 1; | - | ||||||||||||||||||||||||||||||||||||||||||
406 | while (i
| 0-2310 | ||||||||||||||||||||||||||||||||||||||||||
407 | i--; executed 2273 times by 3 tests: i--; Executed by:
| 2273 | ||||||||||||||||||||||||||||||||||||||||||
408 | - | |||||||||||||||||||||||||||||||||||||||||||
409 | if (s[i] != ')'
| 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_filename
| 0-34 | ||||||||||||||||||||||||||||||||||||||||||
417 | ((void *)0)
| 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 (((
| 0-37 | ||||||||||||||||||||||||||||||||||||||||||
426 | i++; executed 23 times by 3 tests: i++; Executed by:
| 23 | ||||||||||||||||||||||||||||||||||||||||||
427 | - | |||||||||||||||||||||||||||||||||||||||||||
428 | if (s[i] != '='
| 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 (((
| 0-37 | ||||||||||||||||||||||||||||||||||||||||||
436 | i++; executed 37 times by 3 tests: i++; Executed by:
| 37 | ||||||||||||||||||||||||||||||||||||||||||
437 | - | |||||||||||||||||||||||||||||||||||||||||||
438 | *hex_digest = (unsigned char *) &s[i]; | - | ||||||||||||||||||||||||||||||||||||||||||
439 | - | |||||||||||||||||||||||||||||||||||||||||||
440 | return executed 37 times by 3 tests: hex_digits (*hex_digest);return hex_digits (*hex_digest); Executed by:
executed 37 times by 3 tests: return hex_digits (*hex_digest); Executed by:
| 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 (((
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
462 | ++ never executed: i;++i; never executed: ++i; | 0 | ||||||||||||||||||||||||||||||||||||||||||
463 | - | |||||||||||||||||||||||||||||||||||||||||||
464 | if (s[i] == '\\'
| 3-92 | ||||||||||||||||||||||||||||||||||||||||||
465 | { | - | ||||||||||||||||||||||||||||||||||||||||||
466 | ++i; | - | ||||||||||||||||||||||||||||||||||||||||||
467 | escaped_filename = | - | ||||||||||||||||||||||||||||||||||||||||||
468 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
469 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
470 | } executed 3 times by 1 test: end of block Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
471 | - | |||||||||||||||||||||||||||||||||||||||||||
472 | - | |||||||||||||||||||||||||||||||||||||||||||
473 | - | |||||||||||||||||||||||||||||||||||||||||||
474 | algo_name_len = strlen ("BLAKE2"); | - | ||||||||||||||||||||||||||||||||||||||||||
475 | if ((
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
476 | (__extension__ (__builtin_constant_p (
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
477 | algo_name_len
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
478 | )
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
479 | s + i
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
480 | )
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
481 | s + i
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
482 | ) < ((size_t) (
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
483 | algo_name_len
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
484 | ))
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
485 | "BLAKE2"
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
486 | )
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
487 | "BLAKE2"
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
488 | ) < ((size_t) (
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
489 | algo_name_len
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
490 | ))
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
491 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
492 | ) && __builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
493 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
494 | ) && (__s1_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
495 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
496 | ), __s2_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
497 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
498 | ), (!((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
499 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
500 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
501 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
502 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
503 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
504 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
505 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
506 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
507 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
508 | ,
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
509 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
510 | ) : (__builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
511 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
512 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
513 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
514 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
515 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
516 | ) == 1) && (__s1_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
517 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
518 | ), __s1_len < 4) ? (__builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
519 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
520 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
521 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
522 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
523 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
524 | ) == 1) ? __builtin_strcmp (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
525 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
526 | ,
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
527 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
528 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
529 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
530 | ); int __result = (((const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
531 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
532 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
533 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
534 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
535 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
536 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]);
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
537 | s + i
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]); | 0-51 | ||||||||||||||||||||||||||||||||||||||||||
538 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
539 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
540 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
541 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
542 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
543 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
544 | ) == 1) && (__s2_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
545 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
546 | ), __s2_len < 4) ? (__builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
547 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
548 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
549 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
550 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
551 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
552 | ) == 1) ? __builtin_strcmp (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
553 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
554 | ,
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
555 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
556 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
557 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
558 | ); int __result = (((const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
559 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
560 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
561 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
562 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
563 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
564 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]);
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
565 | "BLAKE2"
never executed: __result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]); | 0-51 | ||||||||||||||||||||||||||||||||||||||||||
566 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "BLAKE2" ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-51 | ||||||||||||||||||||||||||||||||||||||||||
567 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
568 | ,
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
569 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
570 | )))); }) : strncmp (
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
571 | s + i
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
572 | ,
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
573 | "BLAKE2"
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
574 | ,
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
575 | algo_name_len
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
576 | )))
| 44-51 | ||||||||||||||||||||||||||||||||||||||||||
577 | == 0)
| 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]
| 0-44 | ||||||||||||||||||||||||||||||||||||||||||
585 | ++ executed 21 times by 1 test: i;++i; Executed by:
executed 21 times by 1 test: ++i; Executed by:
| 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 < 0
| 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; Executed by:
| 25 | ||||||||||||||||||||||||||||||||||||||||||
602 | if (openssl_format
| 6-19 | ||||||||||||||||||||||||||||||||||||||||||
603 | s[--i] = '('; executed 6 times by 1 test: s[--i] = '('; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
604 | - | |||||||||||||||||||||||||||||||||||||||||||
605 | if (length_specified
| 11-14 | ||||||||||||||||||||||||||||||||||||||||||
606 | { | - | ||||||||||||||||||||||||||||||||||||||||||
607 | unsigned long int tmp_ulong; | - | ||||||||||||||||||||||||||||||||||||||||||
608 | if (xstrtoul (s + i,
| 1-10 | ||||||||||||||||||||||||||||||||||||||||||
609 | ((void *)0)
| 1-10 | ||||||||||||||||||||||||||||||||||||||||||
610 | , 0, &tmp_ulong,
| 1-10 | ||||||||||||||||||||||||||||||||||||||||||
611 | ((void *)0)
| 1-10 | ||||||||||||||||||||||||||||||||||||||||||
612 | ) == LONGINT_OK
| 1-10 | ||||||||||||||||||||||||||||||||||||||||||
613 | && 0 < tmp_ulong
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
614 | && tmp_ulong % 8 == 0
| 0-10 | ||||||||||||||||||||||||||||||||||||||||||
615 | b2_length = tmp_ulong; executed 10 times by 1 test: b2_length = tmp_ulong; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
616 | else | - | ||||||||||||||||||||||||||||||||||||||||||
617 | return executed 1 time by 1 test: return 0 ; Executed by:
executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
618 | 0 executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
619 | ; executed 1 time by 1 test: return 0 ; Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
620 | - | |||||||||||||||||||||||||||||||||||||||||||
621 | while (((
| 10-30 | ||||||||||||||||||||||||||||||||||||||||||
622 | ++ executed 30 times by 1 test: i;++i; Executed by:
executed 30 times by 1 test: ++i; Executed by:
| 30 | ||||||||||||||||||||||||||||||||||||||||||
623 | } executed 10 times by 1 test: end of block Executed by:
| 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; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
626 | - | |||||||||||||||||||||||||||||||||||||||||||
627 | digest_hex_bytes = b2_length / 4; | - | ||||||||||||||||||||||||||||||||||||||||||
628 | - | |||||||||||||||||||||||||||||||||||||||||||
629 | if (s[i] == ' '
| 20-23 | ||||||||||||||||||||||||||||||||||||||||||
630 | ++ executed 20 times by 3 tests: i;++i; Executed by:
executed 20 times by 3 tests: ++i; Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||
631 | if (s[i] == '('
| 2-41 | ||||||||||||||||||||||||||||||||||||||||||
632 | { | - | ||||||||||||||||||||||||||||||||||||||||||
633 | ++i; | - | ||||||||||||||||||||||||||||||||||||||||||
634 | *binary = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
635 | return executed 41 times by 3 tests: bsd_split_3 (s + i, s_len - i,return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename); Executed by:
executed 41 times by 3 tests: return bsd_split_3 (s + i, s_len - i, hex_digest, file_name, escaped_filename); Executed by:
| 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); Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||||||||
637 | } | - | ||||||||||||||||||||||||||||||||||||||||||
638 | return executed 2 times by 1 test: return 0 ; Executed by:
executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
639 | 0 executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
640 | ; executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
641 | } | - | ||||||||||||||||||||||||||||||||||||||||||
642 | - | |||||||||||||||||||||||||||||||||||||||||||
643 | - | |||||||||||||||||||||||||||||||||||||||||||
644 | - | |||||||||||||||||||||||||||||||||||||||||||
645 | - | |||||||||||||||||||||||||||||||||||||||||||
646 | - | |||||||||||||||||||||||||||||||||||||||||||
647 | if (s_len - i < min_digest_line_length + (s[i] == '\\')
| 4-47 | ||||||||||||||||||||||||||||||||||||||||||
648 | return executed 4 times by 1 test: return 0 ; Executed by:
executed 4 times by 1 test: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
649 | 0 executed 4 times by 1 test: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
650 | ; executed 4 times by 1 test: return 0 ; Executed by:
| 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 | ((*
| 4-320 | ||||||||||||||||||||||||||||||||||||||||||
660 | *hp++
| 4-320 | ||||||||||||||||||||||||||||||||||||||||||
661 | ))] & (unsigned short int) _ISxdigit)
| 4-320 | ||||||||||||||||||||||||||||||||||||||||||
662 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
663 | digest_hex_bytes++; executed 320 times by 1 test: digest_hex_bytes++; Executed by:
| 320 | ||||||||||||||||||||||||||||||||||||||||||
664 | if (digest_hex_bytes < 2
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||
665 | || blake2_max_len[b2_algorithm] * 2 < digest_hex_bytes
| 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 (!((
| 0-43 | ||||||||||||||||||||||||||||||||||||||||||
677 | return executed 4 times by 2 tests: return 0 ; Executed by:
executed 4 times by 2 tests: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
678 | 0 executed 4 times by 2 tests: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
679 | ; executed 4 times by 2 tests: return 0 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
680 | - | |||||||||||||||||||||||||||||||||||||||||||
681 | s[i++] = '\0'; | - | ||||||||||||||||||||||||||||||||||||||||||
682 | - | |||||||||||||||||||||||||||||||||||||||||||
683 | if (! hex_digits (*hex_digest)
| 2-41 | ||||||||||||||||||||||||||||||||||||||||||
684 | return executed 2 times by 1 test: return 0 ; Executed by:
executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
685 | 0 executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
686 | ; executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
687 | - | |||||||||||||||||||||||||||||||||||||||||||
688 | - | |||||||||||||||||||||||||||||||||||||||||||
689 | if ((
| 2-38 | ||||||||||||||||||||||||||||||||||||||||||
690 | { | - | ||||||||||||||||||||||||||||||||||||||||||
691 | - | |||||||||||||||||||||||||||||||||||||||||||
692 | - | |||||||||||||||||||||||||||||||||||||||||||
693 | - | |||||||||||||||||||||||||||||||||||||||||||
694 | - | |||||||||||||||||||||||||||||||||||||||||||
695 | - | |||||||||||||||||||||||||||||||||||||||||||
696 | - | |||||||||||||||||||||||||||||||||||||||||||
697 | if (bsd_reversed == 0
| 2-3 | ||||||||||||||||||||||||||||||||||||||||||
698 | return executed 2 times by 1 test: return 0 ; Executed by:
executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
699 | 0 executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
700 | ; executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
701 | bsd_reversed = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
702 | } executed 3 times by 1 test: end of block Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
703 | else if (bsd_reversed != 1
| 2-34 | ||||||||||||||||||||||||||||||||||||||||||
704 | { | - | ||||||||||||||||||||||||||||||||||||||||||
705 | bsd_reversed = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
706 | *binary = (s[i++] == '*'); | - | ||||||||||||||||||||||||||||||||||||||||||
707 | } executed 34 times by 2 tests: end of block Executed by:
| 34 | ||||||||||||||||||||||||||||||||||||||||||
708 | - | |||||||||||||||||||||||||||||||||||||||||||
709 | - | |||||||||||||||||||||||||||||||||||||||||||
710 | - | |||||||||||||||||||||||||||||||||||||||||||
711 | *file_name = &s[i]; | - | ||||||||||||||||||||||||||||||||||||||||||
712 | - | |||||||||||||||||||||||||||||||||||||||||||
713 | if (escaped_filename
| 0-39 | ||||||||||||||||||||||||||||||||||||||||||
714 | return never executed: filename_unescape (&s[i], s_len - i) != return filename_unescape (&s[i], s_len - i) != ((void *)0) ; 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 | return executed 39 times by 2 tests: return 1 ; Executed by:
executed 39 times by 2 tests: return 1 ; Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
719 | 1 executed 39 times by 2 tests: return 1 ; Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
720 | ; executed 39 times by 2 tests: return 1 ; Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
721 | } | - | ||||||||||||||||||||||||||||||||||||||||||
722 | - | |||||||||||||||||||||||||||||||||||||||||||
723 | - | |||||||||||||||||||||||||||||||||||||||||||
724 | - | |||||||||||||||||||||||||||||||||||||||||||
725 | static void | - | ||||||||||||||||||||||||||||||||||||||||||
726 | print_filename (char const *file, | - | ||||||||||||||||||||||||||||||||||||||||||
727 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
728 | escape) | - | ||||||||||||||||||||||||||||||||||||||||||
729 | { | - | ||||||||||||||||||||||||||||||||||||||||||
730 | if (! escape
| 10-1865 | ||||||||||||||||||||||||||||||||||||||||||
731 | { | - | ||||||||||||||||||||||||||||||||||||||||||
732 | fputs_unlocked (file, | - | ||||||||||||||||||||||||||||||||||||||||||
733 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
734 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
735 | return; executed 1865 times by 7 tests: return; Executed by:
| 1865 | ||||||||||||||||||||||||||||||||||||||||||
736 | } | - | ||||||||||||||||||||||||||||||||||||||||||
737 | - | |||||||||||||||||||||||||||||||||||||||||||
738 | while (*
| 10-45 | ||||||||||||||||||||||||||||||||||||||||||
739 | { | - | ||||||||||||||||||||||||||||||||||||||||||
740 | switch (*file) | - | ||||||||||||||||||||||||||||||||||||||||||
741 | { | - | ||||||||||||||||||||||||||||||||||||||||||
742 | case executed 6 times by 2 tests: '\n':case '\n': Executed by:
executed 6 times by 2 tests: case '\n': Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
743 | fputs_unlocked ("\\n", | - | ||||||||||||||||||||||||||||||||||||||||||
744 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
745 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
746 | break; executed 6 times by 2 tests: break; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
747 | - | |||||||||||||||||||||||||||||||||||||||||||
748 | case executed 6 times by 2 tests: '\\':case '\\': Executed by:
executed 6 times by 2 tests: case '\\': Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
749 | fputs_unlocked ("\\\\", | - | ||||||||||||||||||||||||||||||||||||||||||
750 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
751 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
752 | break; executed 6 times by 2 tests: break; Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
753 | - | |||||||||||||||||||||||||||||||||||||||||||
754 | default executed 33 times by 2 tests: :default: Executed by:
executed 33 times by 2 tests: default: Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||||||||
755 | putchar_unlocked (*file); | - | ||||||||||||||||||||||||||||||||||||||||||
756 | break; executed 33 times by 2 tests: break; Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||||||||
757 | } | - | ||||||||||||||||||||||||||||||||||||||||||
758 | file++; | - | ||||||||||||||||||||||||||||||||||||||||||
759 | } executed 45 times by 2 tests: end of block Executed by:
| 45 | ||||||||||||||||||||||||||||||||||||||||||
760 | } executed 10 times by 2 tests: end of block Executed by:
| 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 > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
817 | filename | - | ||||||||||||||||||||||||||||||||||||||||||
818 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
819 | filename | - | ||||||||||||||||||||||||||||||||||||||||||
820 | ))[2] - __s2[2]); if (__s1_len > 2
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: __result; }))) : (__builtin_constant_p (end of block | 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 > 0
| 0-1886 | ||||||||||||||||||||||||||||||||||||||||||
845 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
846 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-13 | ||||||||||||||||||||||||||||||||||||||||||
847 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
848 | ))[2] - __s2[2]); if (__s2_len > 2
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: __result; }))) : __builtin_strcmp (end of block Executed by:
| 0-13 | ||||||||||||||||||||||||||||||||||||||||||
851 | filename | - | ||||||||||||||||||||||||||||||||||||||||||
852 | , | - | ||||||||||||||||||||||||||||||||||||||||||
853 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
854 | )))); }) | - | ||||||||||||||||||||||||||||||||||||||||||
855 | == 0); | - | ||||||||||||||||||||||||||||||||||||||||||
856 | - | |||||||||||||||||||||||||||||||||||||||||||
857 | *missing = | - | ||||||||||||||||||||||||||||||||||||||||||
858 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
859 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
860 | - | |||||||||||||||||||||||||||||||||||||||||||
861 | if (is_stdin
| 13-1873 | ||||||||||||||||||||||||||||||||||||||||||
862 | { | - | ||||||||||||||||||||||||||||||||||||||||||
863 | have_read_stdin = | - | ||||||||||||||||||||||||||||||||||||||||||
864 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
865 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
866 | fp = | - | ||||||||||||||||||||||||||||||||||||||||||
867 | stdin | - | ||||||||||||||||||||||||||||||||||||||||||
868 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
869 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
870 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
871 | && * dead code: binary*binary dead 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:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
885 | else | - | ||||||||||||||||||||||||||||||||||||||||||
886 | { | - | ||||||||||||||||||||||||||||||||||||||||||
887 | fp = fopen_safer (filename, ( | - | ||||||||||||||||||||||||||||||||||||||||||
888 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
889 | && *binary ? "rb" : "r")); | - | ||||||||||||||||||||||||||||||||||||||||||
890 | if (fp ==
| 6-1867 | ||||||||||||||||||||||||||||||||||||||||||
891 | ((void *)0)
| 6-1867 | ||||||||||||||||||||||||||||||||||||||||||
892 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
893 | { | - | ||||||||||||||||||||||||||||||||||||||||||
894 | if (ignore_missing
| 2-4 | ||||||||||||||||||||||||||||||||||||||||||
895 | (*
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||
896 | ==
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||
897 | 2
| 0-4 | ||||||||||||||||||||||||||||||||||||||||||
898 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
899 | { | - | ||||||||||||||||||||||||||||||||||||||||||
900 | *missing = | - | ||||||||||||||||||||||||||||||||||||||||||
901 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
902 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
903 | return executed 4 times by 1 test: return 1 ; Executed by:
executed 4 times by 1 test: return 1 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
904 | 1 executed 4 times by 1 test: return 1 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
905 | ; executed 4 times by 1 test: return 1 ; Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
906 | } | - | ||||||||||||||||||||||||||||||||||||||||||
907 | error (0, | - | ||||||||||||||||||||||||||||||||||||||||||
908 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
909 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - | ||||||||||||||||||||||||||||||||||||||||||
910 | return executed 2 times by 1 test: return 0 ; Executed by:
executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
911 | 0 executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
912 | ; executed 2 times by 1 test: return 0 ; Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
913 | } | - | ||||||||||||||||||||||||||||||||||||||||||
914 | } executed 1867 times by 7 tests: end of block Executed by:
| 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 (err
| 0-1880 | ||||||||||||||||||||||||||||||||||||||||||
924 | { | - | ||||||||||||||||||||||||||||||||||||||||||
925 | error (0, | - | ||||||||||||||||||||||||||||||||||||||||||
926 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
927 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - | ||||||||||||||||||||||||||||||||||||||||||
928 | if (fp !=
| 0 | ||||||||||||||||||||||||||||||||||||||||||
929 | stdin
| 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_stdin
| 13-1867 | ||||||||||||||||||||||||||||||||||||||||||
940 | rpl_fclose
| 0-1867 | ||||||||||||||||||||||||||||||||||||||||||
941 | (fp) != 0
| 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 | return executed 1880 times by 7 tests: return 1 ; Executed by:
executed 1880 times by 7 tests: return 1 ; Executed by:
| 1880 | ||||||||||||||||||||||||||||||||||||||||||
952 | 1 executed 1880 times by 7 tests: return 1 ; Executed by:
| 1880 | ||||||||||||||||||||||||||||||||||||||||||
953 | ; executed 1880 times by 7 tests: return 1 ; Executed by:
| 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 > 0
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1028 | checkfile_name | - | ||||||||||||||||||||||||||||||||||||||||||
1029 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||||||||||||||||||||
1030 | checkfile_name | - | ||||||||||||||||||||||||||||||||||||||||||
1031 | ))[2] - __s2[2]); if (__s1_len > 2
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: __result; }))) : (__builtin_constant_p (end of block | 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 > 0
| 0-41 | ||||||||||||||||||||||||||||||||||||||||||
1056 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
1057 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
1058 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
1059 | ))[2] - __s2[2]); if (__s2_len > 2
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: __result; }))) : __builtin_strcmp (end of block Executed by:
| 0-1 | ||||||||||||||||||||||||||||||||||||||||||
1062 | checkfile_name | - | ||||||||||||||||||||||||||||||||||||||||||
1063 | , | - | ||||||||||||||||||||||||||||||||||||||||||
1064 | "-" | - | ||||||||||||||||||||||||||||||||||||||||||
1065 | )))); }) | - | ||||||||||||||||||||||||||||||||||||||||||
1066 | == 0); | - | ||||||||||||||||||||||||||||||||||||||||||
1067 | - | |||||||||||||||||||||||||||||||||||||||||||
1068 | if (is_stdin
| 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 Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1082 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1083 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1084 | checkfile_stream = fopen_safer (checkfile_name, "r"); | - | ||||||||||||||||||||||||||||||||||||||||||
1085 | if (checkfile_stream ==
| 0-40 | ||||||||||||||||||||||||||||||||||||||||||
1086 | ((void *)0)
| 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 Executed by:
| 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 == 0
| 0-134 | ||||||||||||||||||||||||||||||||||||||||||
1112 | (( never executed: !!sizeof (struct { _Static_assert (((!!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 ())))) ; 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 <= 0
| 39-95 | ||||||||||||||||||||||||||||||||||||||||||
1135 | break; executed 39 times by 3 tests: break; Executed by:
| 39 | ||||||||||||||||||||||||||||||||||||||||||
1136 | - | |||||||||||||||||||||||||||||||||||||||||||
1137 | - | |||||||||||||||||||||||||||||||||||||||||||
1138 | if (line[0] == '#'
| 0-95 | ||||||||||||||||||||||||||||||||||||||||||
1139 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1140 | - | |||||||||||||||||||||||||||||||||||||||||||
1141 | - | |||||||||||||||||||||||||||||||||||||||||||
1142 | if (line[line_length - 1] == '\n'
| 2-93 | ||||||||||||||||||||||||||||||||||||||||||
1143 | line[--line_length] = '\0'; executed 93 times by 3 tests: line[--line_length] = '\0'; Executed by:
| 93 | ||||||||||||||||||||||||||||||||||||||||||
1144 | - | |||||||||||||||||||||||||||||||||||||||||||
1145 | if (! (split_3 (line, line_length, &hex_digest, &binary, &filename)
| 19-76 | ||||||||||||||||||||||||||||||||||||||||||
1146 | && ! (is_stdin
| 0-74 | ||||||||||||||||||||||||||||||||||||||||||
1147 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1148 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1149 | ) && __builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1150 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1151 | ) && (__s1_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1152 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1153 | ), __s2_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1154 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1155 | ), (!((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1156 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1157 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1158 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1159 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1160 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1161 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1162 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1163 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1164 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1165 | ,
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1166 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1167 | ) : (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1168 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1169 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1170 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1171 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1172 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1173 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1174 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1175 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1176 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1177 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1178 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1179 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1180 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1181 | ) == 1) ? __builtin_strcmp (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1182 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1183 | ,
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1184 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1185 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1186 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1187 | ); int __result = (((const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1188 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1189 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1190 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1191 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1192 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1193 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1194 | filename
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1195 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : (__builtin_constant_p (end of block
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1196 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1197 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1198 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1199 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1200 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1201 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1202 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1203 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1204 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1205 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1206 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1207 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1208 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1209 | ) == 1) ? __builtin_strcmp (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1210 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1211 | ,
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1212 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1213 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1214 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1215 | ); int __result = (((const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1216 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1217 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1218 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1219 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1220 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1221 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1222 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1223 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); never executed: }end of block never executed: __result; }))) : __builtin_strcmp (end of block
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1224 | filename
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1225 | ,
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1226 | "-"
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1227 | )))); })
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1228 | == 0)
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1229 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1230 | ++n_misformatted_lines; | - | ||||||||||||||||||||||||||||||||||||||||||
1231 | - | |||||||||||||||||||||||||||||||||||||||||||
1232 | if (warn
| 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 Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1246 | - | |||||||||||||||||||||||||||||||||||||||||||
1247 | ++n_improperly_formatted_lines; | - | ||||||||||||||||||||||||||||||||||||||||||
1248 | } executed 19 times by 3 tests: end of block Executed by:
| 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_only
| 5-71 | ||||||||||||||||||||||||||||||||||||||||||
1266 | (
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||
1267 | '\n'
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||
1268 | )
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||
1269 | filename
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||
1270 | )
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||
1271 | '\n'
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||
1272 | ) == '\0'
| 0-71 | ||||||||||||||||||||||||||||||||||||||||||
1273 | filename
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1274 | ,
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1275 | '\n'
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1276 | ) : __builtin_strchr (
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1277 | filename
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1278 | ,
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1279 | '\n'
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1280 | )))
| 1-70 | ||||||||||||||||||||||||||||||||||||||||||
1281 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1282 | - | |||||||||||||||||||||||||||||||||||||||||||
1283 | properly_formatted_lines = | - | ||||||||||||||||||||||||||||||||||||||||||
1284 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1285 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1286 | - | |||||||||||||||||||||||||||||||||||||||||||
1287 | ok = digest_file (filename, &binary, bin_buffer, &missing); | - | ||||||||||||||||||||||||||||||||||||||||||
1288 | - | |||||||||||||||||||||||||||||||||||||||||||
1289 | if (!ok
| 2-74 | ||||||||||||||||||||||||||||||||||||||||||
1290 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1291 | ++n_open_or_read_failures; | - | ||||||||||||||||||||||||||||||||||||||||||
1292 | if (!status_only
| 0-2 | ||||||||||||||||||||||||||||||||||||||||||
1293 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1294 | if (needs_escape
| 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 Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
1303 | } executed 2 times by 1 test: end of block Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||||||||
1304 | else if (ignore_missing
| 4-66 | ||||||||||||||||||||||||||||||||||||||||||
1305 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1306 | - | |||||||||||||||||||||||||||||||||||||||||||
1307 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1308 | } executed 4 times by 1 test: end of block Executed by:
| 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_bytes
| 60-1554 | ||||||||||||||||||||||||||||||||||||||||||
1317 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1318 | if ( | - | ||||||||||||||||||||||||||||||||||||||||||
1319 | (
| 0-1554 | ||||||||||||||||||||||||||||||||||||||||||
1320 | hex_digest[2 * cnt]
| 0-1554 | ||||||||||||||||||||||||||||||||||||||||||
1321 | ) > 1
| 0-1554 | ||||||||||||||||||||||||||||||||||||||||||
1322 | hex_digest[2 * cnt]
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1323 | )
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1324 | hex_digest[2 * cnt]
| 10-1544 | ||||||||||||||||||||||||||||||||||||||||||
1325 | ); __res = __c < -128
never executed: else __res = tolower (end of block never executed: __res = tolower ( hex_digest[2 * cnt] );
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1326 | hex_digest[2 * cnt]
never executed: __res = tolower ( hex_digest[2 * cnt] ); | 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1327 | );
never executed: } else __res = (*__ctype_tolower_loc ())[(int) (__res = tolower ( hex_digest[2 * cnt] ); executed 1554 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt] )]; Executed by:
| 0-1554 | ||||||||||||||||||||||||||||||||||||||||||
1328 | hex_digest[2 * cnt]
executed 1554 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt] )]; Executed by:
| 10-1554 | ||||||||||||||||||||||||||||||||||||||||||
1329 | )]; __res; }))
| 10-1554 | ||||||||||||||||||||||||||||||||||||||||||
1330 |
| 10-1544 | ||||||||||||||||||||||||||||||||||||||||||
1331 | != bin2hex[bin_buffer[cnt] >> 4]
| 10-1544 | ||||||||||||||||||||||||||||||||||||||||||
1332 | || (
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1333 | (__extension__ ({ int __res; if (sizeof (
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1334 | hex_digest[2 * cnt + 1]
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1335 | ) > 1) { if (__builtin_constant_p (
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1336 | hex_digest[2 * cnt + 1]
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1337 | )
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1338 | hex_digest[2 * cnt + 1]
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1339 | ); __res = __c < -128
never executed: else __res = tolower (end of block never executed: __res = tolower ( hex_digest[2 * cnt + 1] );
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1340 | hex_digest[2 * cnt + 1]
never executed: __res = tolower ( hex_digest[2 * cnt + 1] ); | 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1341 | );
never executed: } else __res = (*__ctype_tolower_loc ())[(int) (__res = tolower ( hex_digest[2 * cnt + 1] ); executed 1544 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )]; Executed by:
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1342 | hex_digest[2 * cnt + 1]
executed 1544 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )]; Executed by:
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1343 | )];
executed 1544 times by 3 tests: __res; }))__res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )]; Executed by:
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1344 |
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1345 | != (bin2hex[bin_buffer[cnt] & 0xf]))
| 0-1544 | ||||||||||||||||||||||||||||||||||||||||||
1346 | break; executed 10 times by 2 tests: break; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
1347 | } executed 1544 times by 3 tests: end of block Executed by:
| 1544 | ||||||||||||||||||||||||||||||||||||||||||
1348 | if (cnt != digest_bin_bytes
| 10-60 | ||||||||||||||||||||||||||||||||||||||||||
1349 | ++ executed 10 times by 2 tests: n_mismatched_checksums;++n_mismatched_checksums; Executed by:
executed 10 times by 2 tests: ++n_mismatched_checksums; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
1350 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1351 | matched_checksums = executed 60 times by 3 tests: matched_checksums = 1 ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1352 | 1 executed 60 times by 3 tests: matched_checksums = 1 ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1353 | ; executed 60 times by 3 tests: matched_checksums = 1 ; Executed by:
| 60 | ||||||||||||||||||||||||||||||||||||||||||
1354 | - | |||||||||||||||||||||||||||||||||||||||||||
1355 | if (!status_only
| 5-65 | ||||||||||||||||||||||||||||||||||||||||||
1356 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1357 | if (cnt != digest_bin_bytes
| 2-60 | ||||||||||||||||||||||||||||||||||||||||||
1358 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1359 | if (needs_escape
| 1-62 | ||||||||||||||||||||||||||||||||||||||||||
1360 | putchar_unlocked ('\\'); executed 1 time by 1 test: putchar_unlocked ('\\'); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1361 | print_filename (filename, needs_escape); | - | ||||||||||||||||||||||||||||||||||||||||||
1362 | } executed 63 times by 3 tests: end of block Executed by:
| 63 | ||||||||||||||||||||||||||||||||||||||||||
1363 | - | |||||||||||||||||||||||||||||||||||||||||||
1364 | if (cnt != digest_bin_bytes
| 5-60 | ||||||||||||||||||||||||||||||||||||||||||
1365 | printf (": %s\n", executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) ); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1366 | dcgettext (((void *)0), executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) ); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1367 | "FAILED" executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) ); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1368 | , 5) executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) ); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1369 | ); executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) ); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1370 | else if (!quiet
| 2-58 | ||||||||||||||||||||||||||||||||||||||||||
1371 | printf (": %s\n", executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) ); Executed by:
| 58 | ||||||||||||||||||||||||||||||||||||||||||
1372 | dcgettext (((void *)0), executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) ); Executed by:
| 58 | ||||||||||||||||||||||||||||||||||||||||||
1373 | "OK" executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) ); Executed by:
| 58 | ||||||||||||||||||||||||||||||||||||||||||
1374 | , 5) executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) ); Executed by:
| 58 | ||||||||||||||||||||||||||||||||||||||||||
1375 | ); executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) ); Executed by:
| 58 | ||||||||||||||||||||||||||||||||||||||||||
1376 | } executed 65 times by 3 tests: end of block Executed by:
| 65 | ||||||||||||||||||||||||||||||||||||||||||
1377 | } executed 70 times by 3 tests: end of block Executed by:
| 70 | ||||||||||||||||||||||||||||||||||||||||||
1378 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1379 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1380 | while (!feof_unlocked (checkfile_stream)
| 0-93 | ||||||||||||||||||||||||||||||||||||||||||
1381 | - | |||||||||||||||||||||||||||||||||||||||||||
1382 | free (line); | - | ||||||||||||||||||||||||||||||||||||||||||
1383 | - | |||||||||||||||||||||||||||||||||||||||||||
1384 | if (ferror_unlocked (checkfile_stream)
| 0-41 | ||||||||||||||||||||||||||||||||||||||||||
1385 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1386 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1387 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1388 | "%s: read error" | - | ||||||||||||||||||||||||||||||||||||||||||
1389 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1390 | , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); | - | ||||||||||||||||||||||||||||||||||||||||||
1391 | return never executed: return 0 ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1392 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1393 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1394 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1395 | - | |||||||||||||||||||||||||||||||||||||||||||
1396 | if (!is_stdin
| 1-40 | ||||||||||||||||||||||||||||||||||||||||||
1397 | rpl_fclose
| 0-40 | ||||||||||||||||||||||||||||||||||||||||||
1398 | (checkfile_stream) != 0
| 0-40 | ||||||||||||||||||||||||||||||||||||||||||
1399 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1400 | error (0, | - | ||||||||||||||||||||||||||||||||||||||||||
1401 | (*__errno_location ()) | - | ||||||||||||||||||||||||||||||||||||||||||
1402 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); | - | ||||||||||||||||||||||||||||||||||||||||||
1403 | return never executed: return 0 ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1404 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1405 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1406 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1407 | - | |||||||||||||||||||||||||||||||||||||||||||
1408 | if (! properly_formatted_lines
| 8-33 | ||||||||||||||||||||||||||||||||||||||||||
1409 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1410 | - | |||||||||||||||||||||||||||||||||||||||||||
1411 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1412 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1413 | "%s: no properly formatted %s checksum lines found" | - | ||||||||||||||||||||||||||||||||||||||||||
1414 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1415 | , | - | ||||||||||||||||||||||||||||||||||||||||||
1416 | quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name), "BLAKE2"); | - | ||||||||||||||||||||||||||||||||||||||||||
1417 | } executed 8 times by 3 tests: end of block Executed by:
| 8 | ||||||||||||||||||||||||||||||||||||||||||
1418 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1419 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1420 | if (!status_only
| 5-28 | ||||||||||||||||||||||||||||||||||||||||||
1421 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1422 | if (n_misformatted_lines != 0
| 6-22 | ||||||||||||||||||||||||||||||||||||||||||
1423 | error (0, 0, executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1424 | ( executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1425 | dcngettext (((void *)0), executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1426 | "WARNING: %" executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1427 | "l" "u" executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1428 | " line is improperly formatted" executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1429 | , executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1430 | "WARNING: %" executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1431 | "l" "u" executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1432 | " lines are improperly formatted" executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1433 | , executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1434 | select_plural (n_misformatted_lines) executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1435 | , 5) executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1436 | 6 | |||||||||||||||||||||||||||||||||||||||||||
1437 | 6 | |||||||||||||||||||||||||||||||||||||||||||
1438 | executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1439 | ), executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1440 | n_misformatted_lines); executed 6 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " line is improperly formatted" , "WARNING: %" "l" "u" " lines are improperly formatted" , select_plural (n_misformatted_lines) , 5) ), n_misformatted_lines); Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||||||||
1441 | - | |||||||||||||||||||||||||||||||||||||||||||
1442 | if (n_open_or_read_failures != 0
| 1-27 | ||||||||||||||||||||||||||||||||||||||||||
1443 | error (0, 0, executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1444 | ( executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1445 | dcngettext (((void *)0), executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1446 | "WARNING: %" executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1447 | "l" "u" executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1448 | " listed file could not be read" executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1449 | , executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1450 | "WARNING: %" executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1451 | "l" "u" executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1452 | " listed files could not be read" executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1453 | , executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1454 | select_plural (n_open_or_read_failures) executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1455 | , 5) executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1456 | 1 | |||||||||||||||||||||||||||||||||||||||||||
1457 | 1 | |||||||||||||||||||||||||||||||||||||||||||
1458 | executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1459 | ), executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1460 | n_open_or_read_failures); executed 1 time by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " listed file could not be read" , "WARNING: %" "l" "u" " listed files could not be read" , select_plural (n_open_or_read_failures) , 5) ), n_open_or_read_failures); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1461 | - | |||||||||||||||||||||||||||||||||||||||||||
1462 | if (n_mismatched_checksums != 0
| 3-25 | ||||||||||||||||||||||||||||||||||||||||||
1463 | error (0, 0, executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1464 | ( executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1465 | dcngettext (((void *)0), executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1466 | "WARNING: %" executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1467 | "l" "u" executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1468 | " computed checksum did NOT match" executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1469 | , executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1470 | "WARNING: %" executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1471 | "l" "u" executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1472 | " computed checksums did NOT match" executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1473 | , executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1474 | select_plural (n_mismatched_checksums) executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1475 | , 5) executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1476 | 3 | |||||||||||||||||||||||||||||||||||||||||||
1477 | 3 | |||||||||||||||||||||||||||||||||||||||||||
1478 | executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1479 | ), executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1480 | n_mismatched_checksums); executed 3 times by 1 test: error (0, 0, ( dcngettext (((void *)0), "WARNING: %" "l" "u" " computed checksum did NOT match" , "WARNING: %" "l" "u" " computed checksums did NOT match" , select_plural (n_mismatched_checksums) , 5) ), n_mismatched_checksums); Executed by:
| 3 | ||||||||||||||||||||||||||||||||||||||||||
1481 | - | |||||||||||||||||||||||||||||||||||||||||||
1482 | if (ignore_missing
| 1-23 | ||||||||||||||||||||||||||||||||||||||||||
1483 | error (0, 0, executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1484 | dcgettext (((void *)0), executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1485 | "%s: no file was verified" executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1486 | , 5) executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1487 | , executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1488 | quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); executed 1 time by 1 test: error (0, 0, dcgettext (((void *)0), "%s: no file was verified" , 5) , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||||||||
1489 | } executed 28 times by 3 tests: end of block Executed by:
| 28 | ||||||||||||||||||||||||||||||||||||||||||
1490 | } executed 33 times by 3 tests: end of block Executed by:
| 33 | ||||||||||||||||||||||||||||||||||||||||||
1491 | - | |||||||||||||||||||||||||||||||||||||||||||
1492 | return executed 41 times by 3 tests: (properly_formatted_linesreturn (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0)); Executed by:
executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0)); Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||||||||
1493 | && matched_checksums executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0)); Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||||||||
1494 | && n_mismatched_checksums == 0 executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0)); Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||||||||
1495 | && n_open_or_read_failures == 0 executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0)); Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||||||||
1496 | && (!strict || n_improperly_formatted_lines == 0)); executed 41 times by 3 tests: return (properly_formatted_lines && matched_checksums && n_mismatched_checksums == 0 && n_open_or_read_failures == 0 && (!strict || n_improperly_formatted_lines == 0)); Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||||||||
1497 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1498 | - | |||||||||||||||||||||||||||||||||||||||||||
1499 | int | - | ||||||||||||||||||||||||||||||||||||||||||
1500 | main (int argc, char **argv) | - | ||||||||||||||||||||||||||||||||||||||||||
1501 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1502 | unsigned char bin_buffer_unaligned[(512 / 8) + 8]; | - | ||||||||||||||||||||||||||||||||||||||||||
1503 | - | |||||||||||||||||||||||||||||||||||||||||||
1504 | unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, 8); | - | ||||||||||||||||||||||||||||||||||||||||||
1505 | - | |||||||||||||||||||||||||||||||||||||||||||
1506 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
1507 | do_check = | - | ||||||||||||||||||||||||||||||||||||||||||
1508 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1509 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1510 | int opt; | - | ||||||||||||||||||||||||||||||||||||||||||
1511 | - | |||||||||||||||||||||||||||||||||||||||||||
1512 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
1513 | ok = | - | ||||||||||||||||||||||||||||||||||||||||||
1514 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1515 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1516 | int binary = -1; | - | ||||||||||||||||||||||||||||||||||||||||||
1517 | - | |||||||||||||||||||||||||||||||||||||||||||
1518 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
1519 | prefix_tag = | - | ||||||||||||||||||||||||||||||||||||||||||
1520 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1521 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1522 | - | |||||||||||||||||||||||||||||||||||||||||||
1523 | - | |||||||||||||||||||||||||||||||||||||||||||
1524 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1525 | set_program_name (argv[0]); | - | ||||||||||||||||||||||||||||||||||||||||||
1526 | setlocale ( | - | ||||||||||||||||||||||||||||||||||||||||||
1527 | 6 | - | ||||||||||||||||||||||||||||||||||||||||||
1528 | , ""); | - | ||||||||||||||||||||||||||||||||||||||||||
1529 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||||||||||||||||||||||||||
1530 | textdomain ("coreutils"); | - | ||||||||||||||||||||||||||||||||||||||||||
1531 | - | |||||||||||||||||||||||||||||||||||||||||||
1532 | atexit (close_stdout); | - | ||||||||||||||||||||||||||||||||||||||||||
1533 | - | |||||||||||||||||||||||||||||||||||||||||||
1534 | - | |||||||||||||||||||||||||||||||||||||||||||
1535 | - | |||||||||||||||||||||||||||||||||||||||||||
1536 | setvbuf ( | - | ||||||||||||||||||||||||||||||||||||||||||
1537 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
1538 | , | - | ||||||||||||||||||||||||||||||||||||||||||
1539 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1540 | , | - | ||||||||||||||||||||||||||||||||||||||||||
1541 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1542 | , 0); | - | ||||||||||||||||||||||||||||||||||||||||||
1543 | - | |||||||||||||||||||||||||||||||||||||||||||
1544 | - | |||||||||||||||||||||||||||||||||||||||||||
1545 | const char* short_opts = "l:bctw"; | - | ||||||||||||||||||||||||||||||||||||||||||
1546 | const char* b2_length_str = ""; | - | ||||||||||||||||||||||||||||||||||||||||||
1547 | - | |||||||||||||||||||||||||||||||||||||||||||
1548 | - | |||||||||||||||||||||||||||||||||||||||||||
1549 | - | |||||||||||||||||||||||||||||||||||||||||||
1550 | - | |||||||||||||||||||||||||||||||||||||||||||
1551 | while ((
| 357-634 | ||||||||||||||||||||||||||||||||||||||||||
1552 | ((void *)0)
| 357-634 | ||||||||||||||||||||||||||||||||||||||||||
1553 | )) != -1
| 357-634 | ||||||||||||||||||||||||||||||||||||||||||
1554 | switch (opt) | - | ||||||||||||||||||||||||||||||||||||||||||
1555 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1556 | - | |||||||||||||||||||||||||||||||||||||||||||
1557 | case executed 17 times by 1 test: 'l':case 'l': Executed by:
executed 17 times by 1 test: case 'l': Executed by:
| 17 | ||||||||||||||||||||||||||||||||||||||||||
1558 | b2_length = xdectoumax (optarg, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1559 | (18446744073709551615UL) | - | ||||||||||||||||||||||||||||||||||||||||||
1560 | , "", | - | ||||||||||||||||||||||||||||||||||||||||||
1561 | - | |||||||||||||||||||||||||||||||||||||||||||
1562 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1563 | "invalid length" | - | ||||||||||||||||||||||||||||||||||||||||||
1564 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1565 | , 0); | - | ||||||||||||||||||||||||||||||||||||||||||
1566 | b2_length_str = optarg; | - | ||||||||||||||||||||||||||||||||||||||||||
1567 | if (b2_length % 8 != 0
| 0-15 | ||||||||||||||||||||||||||||||||||||||||||
1568 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1569 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1570 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1571 | "invalid length: %s" | - | ||||||||||||||||||||||||||||||||||||||||||
1572 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1573 | , quote (b2_length_str)); | - | ||||||||||||||||||||||||||||||||||||||||||
1574 | ((!!sizeof (struct { _Static_assert ( | - | ||||||||||||||||||||||||||||||||||||||||||
1575 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1576 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"length is not a multiple of 8\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( | - | ||||||||||||||||||||||||||||||||||||||||||
1577 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1578 | , 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1579 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1580 | "length is not a multiple of 8" | - | ||||||||||||||||||||||||||||||||||||||||||
1581 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1582 | ), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1583 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1584 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( | - | ||||||||||||||||||||||||||||||||||||||||||
1585 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1586 | , 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1587 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1588 | "length is not a multiple of 8" | - | ||||||||||||||||||||||||||||||||||||||||||
1589 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1590 | ), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1591 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1592 | ) ? (void) 0 : __builtin_unreachable ())))); | - | ||||||||||||||||||||||||||||||||||||||||||
1593 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1594 | break; executed 15 times by 1 test: break; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
1595 | - | |||||||||||||||||||||||||||||||||||||||||||
1596 | case executed 14 times by 7 tests: 'b':case 'b': Executed by:
executed 14 times by 7 tests: case 'b': Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
1597 | binary = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
1598 | break; executed 14 times by 7 tests: break; Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
1599 | case executed 56 times by 7 tests: 'c':case 'c': Executed by:
executed 56 times by 7 tests: case 'c': Executed by:
| 56 | ||||||||||||||||||||||||||||||||||||||||||
1600 | do_check = | - | ||||||||||||||||||||||||||||||||||||||||||
1601 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1602 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1603 | break; executed 56 times by 7 tests: break; Executed by:
| 56 | ||||||||||||||||||||||||||||||||||||||||||
1604 | case executed 12 times by 7 tests: STATUS_OPTION:case STATUS_OPTION: Executed by:
executed 12 times by 7 tests: case STATUS_OPTION: Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
1605 | status_only = | - | ||||||||||||||||||||||||||||||||||||||||||
1606 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1607 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1608 | warn = | - | ||||||||||||||||||||||||||||||||||||||||||
1609 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1610 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1611 | quiet = | - | ||||||||||||||||||||||||||||||||||||||||||
1612 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1613 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1614 | break; executed 12 times by 7 tests: break; Executed by:
| 12 | ||||||||||||||||||||||||||||||||||||||||||
1615 | case executed 283 times by 7 tests: 't':case 't': Executed by:
executed 283 times by 7 tests: case 't': Executed by:
| 283 | ||||||||||||||||||||||||||||||||||||||||||
1616 | binary = 0; | - | ||||||||||||||||||||||||||||||||||||||||||
1617 | break; executed 283 times by 7 tests: break; Executed by:
| 283 | ||||||||||||||||||||||||||||||||||||||||||
1618 | case executed 15 times by 7 tests: 'w':case 'w': Executed by:
executed 15 times by 7 tests: case 'w': Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
1619 | status_only = | - | ||||||||||||||||||||||||||||||||||||||||||
1620 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1621 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1622 | warn = | - | ||||||||||||||||||||||||||||||||||||||||||
1623 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1624 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1625 | quiet = | - | ||||||||||||||||||||||||||||||||||||||||||
1626 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1627 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1628 | break; executed 15 times by 7 tests: break; Executed by:
| 15 | ||||||||||||||||||||||||||||||||||||||||||
1629 | case executed 13 times by 7 tests: IGNORE_MISSING_OPTION:case IGNORE_MISSING_OPTION: Executed by:
executed 13 times by 7 tests: case IGNORE_MISSING_OPTION: Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
1630 | ignore_missing = | - | ||||||||||||||||||||||||||||||||||||||||||
1631 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1632 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1633 | break; executed 13 times by 7 tests: break; Executed by:
| 13 | ||||||||||||||||||||||||||||||||||||||||||
1634 | case executed 10 times by 7 tests: QUIET_OPTION:case QUIET_OPTION: Executed by:
executed 10 times by 7 tests: case QUIET_OPTION: Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
1635 | status_only = | - | ||||||||||||||||||||||||||||||||||||||||||
1636 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1637 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1638 | warn = | - | ||||||||||||||||||||||||||||||||||||||||||
1639 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1640 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1641 | quiet = | - | ||||||||||||||||||||||||||||||||||||||||||
1642 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1643 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1644 | break; executed 10 times by 7 tests: break; Executed by:
| 10 | ||||||||||||||||||||||||||||||||||||||||||
1645 | case executed 20 times by 7 tests: STRICT_OPTION:case STRICT_OPTION: Executed by:
executed 20 times by 7 tests: case STRICT_OPTION: Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||
1646 | strict = | - | ||||||||||||||||||||||||||||||||||||||||||
1647 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1648 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1649 | break; executed 20 times by 7 tests: break; Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||
1650 | case executed 29 times by 7 tests: TAG_OPTION:case TAG_OPTION: Executed by:
executed 29 times by 7 tests: case TAG_OPTION: Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||
1651 | prefix_tag = | - | ||||||||||||||||||||||||||||||||||||||||||
1652 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1653 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1654 | binary = 1; | - | ||||||||||||||||||||||||||||||||||||||||||
1655 | break; executed 29 times by 7 tests: break; Executed by:
| 29 | ||||||||||||||||||||||||||||||||||||||||||
1656 | case executed 112 times by 7 tests: GETOPT_HELP_CHAR:case GETOPT_HELP_CHAR: Executed by:
executed 112 times by 7 tests: usage (case GETOPT_HELP_CHAR: Executed by:
| 112 | ||||||||||||||||||||||||||||||||||||||||||
1657 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1658 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1659 | case executed 32 times by 7 tests: GETOPT_VERSION_CHAR:case GETOPT_VERSION_CHAR: Executed by:
executed 32 times by 7 tests: version_etc (case GETOPT_VERSION_CHAR: Executed by:
| 32 | ||||||||||||||||||||||||||||||||||||||||||
1660 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
1661 | , "b2sum", "GNU coreutils", Version, ("Padraig Brady"), ("Samuel Neves"), (char *) | - | ||||||||||||||||||||||||||||||||||||||||||
1662 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||||||||
1663 | ); exit ( executed 32 times by 7 tests: exit ( 0 ); Executed by:
| 32 | ||||||||||||||||||||||||||||||||||||||||||
1664 | 0 executed 32 times by 7 tests: exit ( 0 ); Executed by:
| 32 | ||||||||||||||||||||||||||||||||||||||||||
1665 | ); executed 32 times by 7 tests: break;exit ( 0 ); Executed by:
never executed: ;break; | 0-32 | ||||||||||||||||||||||||||||||||||||||||||
1666 | default executed 21 times by 7 tests: :default: Executed by:
executed 21 times by 7 tests: default: Executed by:
| 21 | ||||||||||||||||||||||||||||||||||||||||||
1667 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1668 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1669 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1670 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1671 | - | |||||||||||||||||||||||||||||||||||||||||||
1672 | min_digest_line_length = 3; | - | ||||||||||||||||||||||||||||||||||||||||||
1673 | - | |||||||||||||||||||||||||||||||||||||||||||
1674 | if (b2_length > blake2_max_len[b2_algorithm] * 8
| 0-21 | ||||||||||||||||||||||||||||||||||||||||||
1675 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1676 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1677 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1678 | "invalid length: %s" | - | ||||||||||||||||||||||||||||||||||||||||||
1679 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1680 | , quote (b2_length_str)); | - | ||||||||||||||||||||||||||||||||||||||||||
1681 | ((!!sizeof (struct { _Static_assert ( | - | ||||||||||||||||||||||||||||||||||||||||||
1682 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1683 | , "verify_expr (" "1" ", " "(error (1, 0, dcgettext (((void *)0), \"maximum digest length for %s is %\"\"l\" \"u\"\" bits\", 5), quote (algorithm_in_string[b2_algorithm]), blake2_max_len[b2_algorithm] * 8), assume (false))" ")"); int _gl_dummy; })) ? ((error ( | - | ||||||||||||||||||||||||||||||||||||||||||
1684 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1685 | , 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1686 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1687 | "maximum digest length for %s is %" | - | ||||||||||||||||||||||||||||||||||||||||||
1688 | "l" "u" | - | ||||||||||||||||||||||||||||||||||||||||||
1689 | " bits" | - | ||||||||||||||||||||||||||||||||||||||||||
1690 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1691 | , quote (algorithm_in_string[b2_algorithm]), blake2_max_len[b2_algorithm] * 8), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1692 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1693 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( | - | ||||||||||||||||||||||||||||||||||||||||||
1694 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1695 | , 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1696 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1697 | "maximum digest length for %s is %" | - | ||||||||||||||||||||||||||||||||||||||||||
1698 | "l" "u" | - | ||||||||||||||||||||||||||||||||||||||||||
1699 | " bits" | - | ||||||||||||||||||||||||||||||||||||||||||
1700 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1701 | , quote (algorithm_in_string[b2_algorithm]), blake2_max_len[b2_algorithm] * 8), (( | - | ||||||||||||||||||||||||||||||||||||||||||
1702 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1703 | ) ? (void) 0 : __builtin_unreachable ())))) | - | ||||||||||||||||||||||||||||||||||||||||||
1704 | - | |||||||||||||||||||||||||||||||||||||||||||
1705 | - | |||||||||||||||||||||||||||||||||||||||||||
1706 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1707 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1708 | if (b2_length == 0
| 6-13 | ||||||||||||||||||||||||||||||||||||||||||
1709 | b2_length = blake2_max_len[b2_algorithm] * 8; executed 7 times by 1 test: b2_length = blake2_max_len[b2_algorithm] * 8; Executed by:
| 7 | ||||||||||||||||||||||||||||||||||||||||||
1710 | digest_hex_bytes = b2_length / 4; | - | ||||||||||||||||||||||||||||||||||||||||||
1711 | - | |||||||||||||||||||||||||||||||||||||||||||
1712 | - | |||||||||||||||||||||||||||||||||||||||||||
1713 | - | |||||||||||||||||||||||||||||||||||||||||||
1714 | - | |||||||||||||||||||||||||||||||||||||||||||
1715 | if (prefix_tag
| 1-335 | ||||||||||||||||||||||||||||||||||||||||||
1716 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1717 | - | |||||||||||||||||||||||||||||||||||||||||||
1718 | - | |||||||||||||||||||||||||||||||||||||||||||
1719 | - | |||||||||||||||||||||||||||||||||||||||||||
1720 | - | |||||||||||||||||||||||||||||||||||||||||||
1721 | - | |||||||||||||||||||||||||||||||||||||||||||
1722 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1723 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1724 | "--tag does not support --text mode" | - | ||||||||||||||||||||||||||||||||||||||||||
1725 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1726 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1727 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1728 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1729 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1730 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1731 | - | |||||||||||||||||||||||||||||||||||||||||||
1732 | if (prefix_tag
| 1-335 | ||||||||||||||||||||||||||||||||||||||||||
1733 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1734 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1735 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1736 | "the --tag option is meaningless when " "verifying checksums" | - | ||||||||||||||||||||||||||||||||||||||||||
1737 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1738 | - | |||||||||||||||||||||||||||||||||||||||||||
1739 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1740 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1741 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1742 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1743 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1744 | - | |||||||||||||||||||||||||||||||||||||||||||
1745 | if (0 <= binary
| 0-288 | ||||||||||||||||||||||||||||||||||||||||||
1746 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1747 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1748 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1749 | "the --binary and --text options are meaningless when " "verifying checksums" | - | ||||||||||||||||||||||||||||||||||||||||||
1750 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1751 | - | |||||||||||||||||||||||||||||||||||||||||||
1752 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1753 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1754 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1755 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1756 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1757 | - | |||||||||||||||||||||||||||||||||||||||||||
1758 | if (ignore_missing
| 1-349 | ||||||||||||||||||||||||||||||||||||||||||
1759 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1760 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1761 | - | |||||||||||||||||||||||||||||||||||||||||||
1762 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1763 | "the --ignore-missing option is meaningful only when " "verifying checksums" | - | ||||||||||||||||||||||||||||||||||||||||||
1764 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1765 | - | |||||||||||||||||||||||||||||||||||||||||||
1766 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1767 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1768 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1769 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1770 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1771 | - | |||||||||||||||||||||||||||||||||||||||||||
1772 | if (status_only
| 0-349 | ||||||||||||||||||||||||||||||||||||||||||
1773 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1774 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1775 | - | |||||||||||||||||||||||||||||||||||||||||||
1776 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1777 | "the --status option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||||||||||||||||||||
1778 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1779 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1780 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1781 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1782 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1783 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1784 | - | |||||||||||||||||||||||||||||||||||||||||||
1785 | if (warn
| 0-353 | ||||||||||||||||||||||||||||||||||||||||||
1786 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1787 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1788 | - | |||||||||||||||||||||||||||||||||||||||||||
1789 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1790 | "the --warn option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||||||||||||||||||||
1791 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1792 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1793 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1794 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1795 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1796 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1797 | - | |||||||||||||||||||||||||||||||||||||||||||
1798 | if (quiet
| 0-351 | ||||||||||||||||||||||||||||||||||||||||||
1799 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1800 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1801 | - | |||||||||||||||||||||||||||||||||||||||||||
1802 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1803 | "the --quiet option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||||||||||||||||||||
1804 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1805 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1806 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1807 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1808 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1809 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1810 | - | |||||||||||||||||||||||||||||||||||||||||||
1811 | if (strict & !do_check
| 0-354 | ||||||||||||||||||||||||||||||||||||||||||
1812 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1813 | error (0, 0, | - | ||||||||||||||||||||||||||||||||||||||||||
1814 | - | |||||||||||||||||||||||||||||||||||||||||||
1815 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||||||||||||||||||||
1816 | "the --strict option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||||||||||||||||||||
1817 | , 5) | - | ||||||||||||||||||||||||||||||||||||||||||
1818 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1819 | usage ( | - | ||||||||||||||||||||||||||||||||||||||||||
1820 | 1 | - | ||||||||||||||||||||||||||||||||||||||||||
1821 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1822 | } never executed: end of block | 0 | ||||||||||||||||||||||||||||||||||||||||||
1823 | - | |||||||||||||||||||||||||||||||||||||||||||
1824 | if (! | - | ||||||||||||||||||||||||||||||||||||||||||
1825 | 0 | - | ||||||||||||||||||||||||||||||||||||||||||
1826 | && binary < 0
| 67-287 | ||||||||||||||||||||||||||||||||||||||||||
1827 | binary = 0; executed 67 times by 7 tests: binary = 0; Executed by:
| 67 | ||||||||||||||||||||||||||||||||||||||||||
1828 | - | |||||||||||||||||||||||||||||||||||||||||||
1829 | char **operand_lim = argv + argc; | - | ||||||||||||||||||||||||||||||||||||||||||
1830 | if (optind == argc
| 14-340 | ||||||||||||||||||||||||||||||||||||||||||
1831 | * executed 14 times by 7 tests: operand_lim++ = bad_cast ("-");*operand_lim++ = bad_cast ("-"); Executed by:
executed 14 times by 7 tests: *operand_lim++ = bad_cast ("-"); Executed by:
| 14 | ||||||||||||||||||||||||||||||||||||||||||
1832 | - | |||||||||||||||||||||||||||||||||||||||||||
1833 | for (char **operandp = argv + optind; operandp < operand_lim
| 354-1851 | ||||||||||||||||||||||||||||||||||||||||||
1834 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1835 | char *file = *operandp; | - | ||||||||||||||||||||||||||||||||||||||||||
1836 | - | |||||||||||||||||||||||||||||||||||||||||||
1837 | if (do_check
| 41-1810 | ||||||||||||||||||||||||||||||||||||||||||
1838 | ok &= digest_check (file); executed 41 times by 3 tests: ok &= digest_check (file); Executed by:
| 41 | ||||||||||||||||||||||||||||||||||||||||||
1839 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1840 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1841 | int file_is_binary = binary; | - | ||||||||||||||||||||||||||||||||||||||||||
1842 | - | |||||||||||||||||||||||||||||||||||||||||||
1843 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
1844 | missing; | - | ||||||||||||||||||||||||||||||||||||||||||
1845 | - | |||||||||||||||||||||||||||||||||||||||||||
1846 | if (! digest_file (file, &file_is_binary, bin_buffer, &missing)
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1847 | ok = never executed: ok = 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1848 | 0 never executed: ok = 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1849 | ; never executed: ok = 0 ; | 0 | ||||||||||||||||||||||||||||||||||||||||||
1850 | else | - | ||||||||||||||||||||||||||||||||||||||||||
1851 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1852 | - | |||||||||||||||||||||||||||||||||||||||||||
1853 | - | |||||||||||||||||||||||||||||||||||||||||||
1854 | - | |||||||||||||||||||||||||||||||||||||||||||
1855 | - | |||||||||||||||||||||||||||||||||||||||||||
1856 | - | |||||||||||||||||||||||||||||||||||||||||||
1857 | - | |||||||||||||||||||||||||||||||||||||||||||
1858 | - | |||||||||||||||||||||||||||||||||||||||||||
1859 | - | |||||||||||||||||||||||||||||||||||||||||||
1860 | _Bool | - | ||||||||||||||||||||||||||||||||||||||||||
1861 | needs_escape = | - | ||||||||||||||||||||||||||||||||||||||||||
1862 | (
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1863 | '\\'
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1864 | )
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1865 | file
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1866 | )
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1867 | '\\'
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1868 | ) == '\0'
| 0-1810 | ||||||||||||||||||||||||||||||||||||||||||
1869 | file
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1870 | ,
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1871 | '\\'
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1872 | ) : __builtin_strchr (
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1873 | file
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1874 | ,
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1875 | '\\'
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1876 | )))
| 5-1805 | ||||||||||||||||||||||||||||||||||||||||||
1877 | || | - | ||||||||||||||||||||||||||||||||||||||||||
1878 | (
| 0-1805 | ||||||||||||||||||||||||||||||||||||||||||
1879 | '\n'
| 0-1805 | ||||||||||||||||||||||||||||||||||||||||||
1880 | )
| 0-1805 | ||||||||||||||||||||||||||||||||||||||||||
1881 | file
| 0-1805 | ||||||||||||||||||||||||||||||||||||||||||
1882 | )
| 0-1805 | ||||||||||||||||||||||||||||||||||||||||||
1883 | '\n'
| 0-1805 | ||||||||||||||||||||||||||||||||||||||||||
1884 | ) == '\0'
| 0-1805 | ||||||||||||||||||||||||||||||||||||||||||
1885 | file
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1886 | ,
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1887 | '\n'
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1888 | ) : __builtin_strchr (
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1889 | file
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1890 | ,
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1891 | '\n'
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1892 | )))
| 4-1801 | ||||||||||||||||||||||||||||||||||||||||||
1893 | ; | - | ||||||||||||||||||||||||||||||||||||||||||
1894 | - | |||||||||||||||||||||||||||||||||||||||||||
1895 | if (prefix_tag
| 20-1790 | ||||||||||||||||||||||||||||||||||||||||||
1896 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1897 | if (needs_escape
| 4-16 | ||||||||||||||||||||||||||||||||||||||||||
1898 | putchar_unlocked ('\\'); executed 4 times by 1 test: putchar_unlocked ('\\'); Executed by:
| 4 | ||||||||||||||||||||||||||||||||||||||||||
1899 | - | |||||||||||||||||||||||||||||||||||||||||||
1900 | - | |||||||||||||||||||||||||||||||||||||||||||
1901 | fputs_unlocked (algorithm_out_string[b2_algorithm], | - | ||||||||||||||||||||||||||||||||||||||||||
1902 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
1903 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1904 | if (b2_length < blake2_max_len[b2_algorithm] * 8
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1905 | printf ("-%" executed 5 times by 1 test: printf ("-%" "l" "u" , b2_length); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1906 | "l" "u" executed 5 times by 1 test: printf ("-%" "l" "u" , b2_length); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1907 | , b2_length); executed 5 times by 1 test: printf ("-%" "l" "u" , b2_length); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1908 | - | |||||||||||||||||||||||||||||||||||||||||||
1909 | - | |||||||||||||||||||||||||||||||||||||||||||
1910 | - | |||||||||||||||||||||||||||||||||||||||||||
1911 | fputs_unlocked (" (", | - | ||||||||||||||||||||||||||||||||||||||||||
1912 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
1913 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1914 | print_filename (file, needs_escape); | - | ||||||||||||||||||||||||||||||||||||||||||
1915 | fputs_unlocked (") = ", | - | ||||||||||||||||||||||||||||||||||||||||||
1916 | stdout | - | ||||||||||||||||||||||||||||||||||||||||||
1917 | ); | - | ||||||||||||||||||||||||||||||||||||||||||
1918 | } executed 20 times by 2 tests: end of block Executed by:
| 20 | ||||||||||||||||||||||||||||||||||||||||||
1919 | - | |||||||||||||||||||||||||||||||||||||||||||
1920 | - | |||||||||||||||||||||||||||||||||||||||||||
1921 | - | |||||||||||||||||||||||||||||||||||||||||||
1922 | if (!prefix_tag
| 5-1790 | ||||||||||||||||||||||||||||||||||||||||||
1923 | putchar_unlocked ('\\'); executed 5 times by 2 tests: putchar_unlocked ('\\'); Executed by:
| 5 | ||||||||||||||||||||||||||||||||||||||||||
1924 | - | |||||||||||||||||||||||||||||||||||||||||||
1925 | for (size_t i = 0; i < (digest_hex_bytes / 2)
| 1810-30992 | ||||||||||||||||||||||||||||||||||||||||||
1926 | printf ("%02x", bin_buffer[i]); executed 30992 times by 7 tests: printf ("%02x", bin_buffer[i]); Executed by:
| 30992 | ||||||||||||||||||||||||||||||||||||||||||
1927 | - | |||||||||||||||||||||||||||||||||||||||||||
1928 | if (!prefix_tag
| 20-1790 | ||||||||||||||||||||||||||||||||||||||||||
1929 | { | - | ||||||||||||||||||||||||||||||||||||||||||
1930 | putchar_unlocked (' '); | - | ||||||||||||||||||||||||||||||||||||||||||
1931 | - | |||||||||||||||||||||||||||||||||||||||||||
1932 | putchar_unlocked (file_is_binary ? '*' : ' '); | - | ||||||||||||||||||||||||||||||||||||||||||
1933 | - | |||||||||||||||||||||||||||||||||||||||||||
1934 | print_filename (file, needs_escape); | - | ||||||||||||||||||||||||||||||||||||||||||
1935 | } executed 1790 times by 7 tests: end of block Executed by:
| 1790 | ||||||||||||||||||||||||||||||||||||||||||
1936 | - | |||||||||||||||||||||||||||||||||||||||||||
1937 | putchar_unlocked ('\n'); | - | ||||||||||||||||||||||||||||||||||||||||||
1938 | } executed 1810 times by 7 tests: end of block Executed by:
| 1810 | ||||||||||||||||||||||||||||||||||||||||||
1939 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1940 | } | - | ||||||||||||||||||||||||||||||||||||||||||
1941 | - | |||||||||||||||||||||||||||||||||||||||||||
1942 | if (have_read_stdin
| 14-340 | ||||||||||||||||||||||||||||||||||||||||||
1943 | rpl_fclose
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1944 | (
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1945 | stdin
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1946 | ) ==
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1947 | (-1)
| 0-14 | ||||||||||||||||||||||||||||||||||||||||||
1948 | ) | - | ||||||||||||||||||||||||||||||||||||||||||
1949 | (( never executed: !!sizeof (struct { _Static_assert (((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1950 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1951 | , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1952 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1953 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1954 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1955 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1956 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1957 | "standard input" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1958 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1959 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1960 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1961 | ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1962 | 1 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1963 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1964 | (*__errno_location ()) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1965 | , never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1966 | dcgettext (((void *)0), never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1967 | "standard input" never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1968 | , 5) never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1969 | ), (( never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1970 | 0 never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1971 | ) ? (void) 0 : __builtin_unreachable ())))); never executed: ((!!sizeof (struct { _Static_assert ( 1 , "verify_expr (" "1" ", " "(error (1, (*__errno_location ()), dcgettext (((void *)0), \"standard input\", 5)), assume (false))" ")"); int _gl_dummy; })) ? ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ()))) : ((error ( 1 , (*__errno_location ()) , dcgettext (((void *)0), "standard input" , 5) ), (( 0 ) ? (void) 0 : __builtin_unreachable ())))); | 0 | ||||||||||||||||||||||||||||||||||||||||||
1972 | - | |||||||||||||||||||||||||||||||||||||||||||
1973 | return executed 354 times by 7 tests: ok ? return ok ? 0 : 1 ; Executed by:
executed 354 times by 7 tests: return ok ? 0 : 1 ; Executed by:
| 354 | ||||||||||||||||||||||||||||||||||||||||||
1974 | 0 executed 354 times by 7 tests: return ok ? 0 : 1 ; Executed by:
| 354 | ||||||||||||||||||||||||||||||||||||||||||
1975 | : executed 354 times by 7 tests: return ok ? 0 : 1 ; Executed by:
| 354 | ||||||||||||||||||||||||||||||||||||||||||
1976 | 1 executed 354 times by 7 tests: return ok ? 0 : 1 ; Executed by:
| 354 | ||||||||||||||||||||||||||||||||||||||||||
1977 | ; executed 354 times by 7 tests: return ok ? 0 : 1 ; Executed by:
| 354 | ||||||||||||||||||||||||||||||||||||||||||
1978 | } | - | ||||||||||||||||||||||||||||||||||||||||||
Switch to Source code | Preprocessed file |