| 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 | - | |||||||||||||||||||||||||
| 7 | - | |||||||||||||||||||||||||
| 8 | - | |||||||||||||||||||||||||
| 9 | static | - | ||||||||||||||||||||||||
| 10 | _Bool | - | ||||||||||||||||||||||||
| 11 | have_read_stdin; | - | ||||||||||||||||||||||||
| 12 | - | |||||||||||||||||||||||||
| 13 | - | |||||||||||||||||||||||||
| 14 | static size_t min_digest_line_length; | - | ||||||||||||||||||||||||
| 15 | - | |||||||||||||||||||||||||
| 16 | - | |||||||||||||||||||||||||
| 17 | static size_t digest_hex_bytes; | - | ||||||||||||||||||||||||
| 18 | - | |||||||||||||||||||||||||
| 19 | - | |||||||||||||||||||||||||
| 20 | - | |||||||||||||||||||||||||
| 21 | static | - | ||||||||||||||||||||||||
| 22 | _Bool | - | ||||||||||||||||||||||||
| 23 | status_only = | - | ||||||||||||||||||||||||
| 24 | 0 | - | ||||||||||||||||||||||||
| 25 | ; | - | ||||||||||||||||||||||||
| 26 | - | |||||||||||||||||||||||||
| 27 | - | |||||||||||||||||||||||||
| 28 | - | |||||||||||||||||||||||||
| 29 | static | - | ||||||||||||||||||||||||
| 30 | _Bool | - | ||||||||||||||||||||||||
| 31 | warn = | - | ||||||||||||||||||||||||
| 32 | 0 | - | ||||||||||||||||||||||||
| 33 | ; | - | ||||||||||||||||||||||||
| 34 | - | |||||||||||||||||||||||||
| 35 | - | |||||||||||||||||||||||||
| 36 | static | - | ||||||||||||||||||||||||
| 37 | _Bool | - | ||||||||||||||||||||||||
| 38 | ignore_missing = | - | ||||||||||||||||||||||||
| 39 | 0 | - | ||||||||||||||||||||||||
| 40 | ; | - | ||||||||||||||||||||||||
| 41 | - | |||||||||||||||||||||||||
| 42 | - | |||||||||||||||||||||||||
| 43 | static | - | ||||||||||||||||||||||||
| 44 | _Bool | - | ||||||||||||||||||||||||
| 45 | quiet = | - | ||||||||||||||||||||||||
| 46 | 0 | - | ||||||||||||||||||||||||
| 47 | ; | - | ||||||||||||||||||||||||
| 48 | - | |||||||||||||||||||||||||
| 49 | - | |||||||||||||||||||||||||
| 50 | - | |||||||||||||||||||||||||
| 51 | static | - | ||||||||||||||||||||||||
| 52 | _Bool | - | ||||||||||||||||||||||||
| 53 | strict = | - | ||||||||||||||||||||||||
| 54 | 0 | - | ||||||||||||||||||||||||
| 55 | ; | - | ||||||||||||||||||||||||
| 56 | - | |||||||||||||||||||||||||
| 57 | - | |||||||||||||||||||||||||
| 58 | static int bsd_reversed = -1; | - | ||||||||||||||||||||||||
| 59 | enum | - | ||||||||||||||||||||||||
| 60 | { | - | ||||||||||||||||||||||||
| 61 | IGNORE_MISSING_OPTION = 0x7f + 1, | - | ||||||||||||||||||||||||
| 62 | STATUS_OPTION, | - | ||||||||||||||||||||||||
| 63 | QUIET_OPTION, | - | ||||||||||||||||||||||||
| 64 | STRICT_OPTION, | - | ||||||||||||||||||||||||
| 65 | TAG_OPTION | - | ||||||||||||||||||||||||
| 66 | }; | - | ||||||||||||||||||||||||
| 67 | - | |||||||||||||||||||||||||
| 68 | static struct option const long_options[] = | - | ||||||||||||||||||||||||
| 69 | { | - | ||||||||||||||||||||||||
| 70 | - | |||||||||||||||||||||||||
| 71 | - | |||||||||||||||||||||||||
| 72 | - | |||||||||||||||||||||||||
| 73 | { "binary", | - | ||||||||||||||||||||||||
| 74 | 0 | - | ||||||||||||||||||||||||
| 75 | , | - | ||||||||||||||||||||||||
| 76 | ((void *)0) | - | ||||||||||||||||||||||||
| 77 | , 'b' }, | - | ||||||||||||||||||||||||
| 78 | { "check", | - | ||||||||||||||||||||||||
| 79 | 0 | - | ||||||||||||||||||||||||
| 80 | , | - | ||||||||||||||||||||||||
| 81 | ((void *)0) | - | ||||||||||||||||||||||||
| 82 | , 'c' }, | - | ||||||||||||||||||||||||
| 83 | { "ignore-missing", | - | ||||||||||||||||||||||||
| 84 | 0 | - | ||||||||||||||||||||||||
| 85 | , | - | ||||||||||||||||||||||||
| 86 | ((void *)0) | - | ||||||||||||||||||||||||
| 87 | , IGNORE_MISSING_OPTION}, | - | ||||||||||||||||||||||||
| 88 | { "quiet", | - | ||||||||||||||||||||||||
| 89 | 0 | - | ||||||||||||||||||||||||
| 90 | , | - | ||||||||||||||||||||||||
| 91 | ((void *)0) | - | ||||||||||||||||||||||||
| 92 | , QUIET_OPTION }, | - | ||||||||||||||||||||||||
| 93 | { "status", | - | ||||||||||||||||||||||||
| 94 | 0 | - | ||||||||||||||||||||||||
| 95 | , | - | ||||||||||||||||||||||||
| 96 | ((void *)0) | - | ||||||||||||||||||||||||
| 97 | , STATUS_OPTION }, | - | ||||||||||||||||||||||||
| 98 | { "text", | - | ||||||||||||||||||||||||
| 99 | 0 | - | ||||||||||||||||||||||||
| 100 | , | - | ||||||||||||||||||||||||
| 101 | ((void *)0) | - | ||||||||||||||||||||||||
| 102 | , 't' }, | - | ||||||||||||||||||||||||
| 103 | { "warn", | - | ||||||||||||||||||||||||
| 104 | 0 | - | ||||||||||||||||||||||||
| 105 | , | - | ||||||||||||||||||||||||
| 106 | ((void *)0) | - | ||||||||||||||||||||||||
| 107 | , 'w' }, | - | ||||||||||||||||||||||||
| 108 | { "strict", | - | ||||||||||||||||||||||||
| 109 | 0 | - | ||||||||||||||||||||||||
| 110 | , | - | ||||||||||||||||||||||||
| 111 | ((void *)0) | - | ||||||||||||||||||||||||
| 112 | , STRICT_OPTION }, | - | ||||||||||||||||||||||||
| 113 | { "tag", | - | ||||||||||||||||||||||||
| 114 | 0 | - | ||||||||||||||||||||||||
| 115 | , | - | ||||||||||||||||||||||||
| 116 | ((void *)0) | - | ||||||||||||||||||||||||
| 117 | , TAG_OPTION }, | - | ||||||||||||||||||||||||
| 118 | { "help", | - | ||||||||||||||||||||||||
| 119 | 0 | - | ||||||||||||||||||||||||
| 120 | , | - | ||||||||||||||||||||||||
| 121 | ((void *)0) | - | ||||||||||||||||||||||||
| 122 | , GETOPT_HELP_CHAR }, | - | ||||||||||||||||||||||||
| 123 | { "version", | - | ||||||||||||||||||||||||
| 124 | 0 | - | ||||||||||||||||||||||||
| 125 | , | - | ||||||||||||||||||||||||
| 126 | ((void *)0) | - | ||||||||||||||||||||||||
| 127 | , GETOPT_VERSION_CHAR }, | - | ||||||||||||||||||||||||
| 128 | { | - | ||||||||||||||||||||||||
| 129 | ((void *)0) | - | ||||||||||||||||||||||||
| 130 | , 0, | - | ||||||||||||||||||||||||
| 131 | ((void *)0) | - | ||||||||||||||||||||||||
| 132 | , 0 } | - | ||||||||||||||||||||||||
| 133 | }; | - | ||||||||||||||||||||||||
| 134 | - | |||||||||||||||||||||||||
| 135 | void | - | ||||||||||||||||||||||||
| 136 | usage (int status) | - | ||||||||||||||||||||||||
| 137 | { | - | ||||||||||||||||||||||||
| 138 | if (status !=
| 24-112 | ||||||||||||||||||||||||
| 139 | 0
| 24-112 | ||||||||||||||||||||||||
| 140 | ) | - | ||||||||||||||||||||||||
| 141 | do { fprintf ( | - | ||||||||||||||||||||||||
| 142 | stderr | - | ||||||||||||||||||||||||
| 143 | , | - | ||||||||||||||||||||||||
| 144 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 145 | "Try '%s --help' for more information.\n" | - | ||||||||||||||||||||||||
| 146 | , 5) | - | ||||||||||||||||||||||||
| 147 | , program_name); } executed 24 times by 7 tests: while (0);end of blockExecuted by:
| 24 | ||||||||||||||||||||||||
| 148 | else | - | ||||||||||||||||||||||||
| 149 | { | - | ||||||||||||||||||||||||
| 150 | printf ( | - | ||||||||||||||||||||||||
| 151 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 152 | "Usage: %s [OPTION]... [FILE]...\nPrint or check %s (%d-bit) checksums.\n" | - | ||||||||||||||||||||||||
| 153 | , 5) | - | ||||||||||||||||||||||||
| 154 | - | |||||||||||||||||||||||||
| 155 | - | |||||||||||||||||||||||||
| 156 | - | |||||||||||||||||||||||||
| 157 | , | - | ||||||||||||||||||||||||
| 158 | program_name, | - | ||||||||||||||||||||||||
| 159 | "MD5", | - | ||||||||||||||||||||||||
| 160 | 128); | - | ||||||||||||||||||||||||
| 161 | - | |||||||||||||||||||||||||
| 162 | emit_stdin_note (); | - | ||||||||||||||||||||||||
| 163 | if ( | - | ||||||||||||||||||||||||
| 164 | 0 | - | ||||||||||||||||||||||||
| 165 | ) | - | ||||||||||||||||||||||||
| 166 | fputs_unlocked ( dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 167 | 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 ) ; | - | ||||||||||||||||||||||||
| 168 | "\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 ) ; | - | ||||||||||||||||||||||||
| 169 | , 5) dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 170 | , dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 171 | stdout dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 172 | ) dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 173 | - | |||||||||||||||||||||||||
| 174 | - | |||||||||||||||||||||||||
| 175 | ; dead code: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode (default unless reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 176 | else | - | ||||||||||||||||||||||||
| 177 | 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 | ||||||||||||||||||||||||
| 178 | 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 | ||||||||||||||||||||||||
| 179 | "\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 | ||||||||||||||||||||||||
| 180 | , 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 | ||||||||||||||||||||||||
| 181 | , executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;Executed by:
| 112 | ||||||||||||||||||||||||
| 182 | 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 | ||||||||||||||||||||||||
| 183 | ) executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;Executed by:
| 112 | ||||||||||||||||||||||||
| 184 | 112 | |||||||||||||||||||||||||
| 185 | 112 | |||||||||||||||||||||||||
| 186 | ; executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), "\n -b, --binary read in binary mode\n" , 5) , stdout ) ;Executed by:
| 112 | ||||||||||||||||||||||||
| 187 | - | |||||||||||||||||||||||||
| 188 | printf ( | - | ||||||||||||||||||||||||
| 189 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 190 | " -c, --check read %s sums from the FILEs and check them\n" | - | ||||||||||||||||||||||||
| 191 | , 5) | - | ||||||||||||||||||||||||
| 192 | - | |||||||||||||||||||||||||
| 193 | , | - | ||||||||||||||||||||||||
| 194 | "MD5"); | - | ||||||||||||||||||||||||
| 195 | - | |||||||||||||||||||||||||
| 196 | - | |||||||||||||||||||||||||
| 197 | - | |||||||||||||||||||||||||
| 198 | - | |||||||||||||||||||||||||
| 199 | - | |||||||||||||||||||||||||
| 200 | - | |||||||||||||||||||||||||
| 201 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 202 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 203 | " --tag create a BSD-style checksum\n" | - | ||||||||||||||||||||||||
| 204 | , 5) | - | ||||||||||||||||||||||||
| 205 | , | - | ||||||||||||||||||||||||
| 206 | stdout | - | ||||||||||||||||||||||||
| 207 | ) | - | ||||||||||||||||||||||||
| 208 | - | |||||||||||||||||||||||||
| 209 | ; | - | ||||||||||||||||||||||||
| 210 | if ( | - | ||||||||||||||||||||||||
| 211 | 0 | - | ||||||||||||||||||||||||
| 212 | ) | - | ||||||||||||||||||||||||
| 213 | fputs_unlocked ( dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 214 | dcgettext (((void *)0), dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 215 | " -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 ) ; | - | ||||||||||||||||||||||||
| 216 | , 5) dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 217 | , dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 218 | stdout dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 219 | ) dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 220 | - | |||||||||||||||||||||||||
| 221 | ; dead code: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default if reading tty stdin)\n" , 5) , stdout ) ; | - | ||||||||||||||||||||||||
| 222 | else | - | ||||||||||||||||||||||||
| 223 | 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 | ||||||||||||||||||||||||
| 224 | 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 | ||||||||||||||||||||||||
| 225 | " -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 | ||||||||||||||||||||||||
| 226 | , 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 | ||||||||||||||||||||||||
| 227 | , executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;Executed by:
| 112 | ||||||||||||||||||||||||
| 228 | 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 | ||||||||||||||||||||||||
| 229 | ) executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;Executed by:
| 112 | ||||||||||||||||||||||||
| 230 | 112 | |||||||||||||||||||||||||
| 231 | ; executed 112 times by 7 tests: fputs_unlocked ( dcgettext (((void *)0), " -t, --text read in text mode (default)\n" , 5) , stdout ) ;Executed by:
| 112 | ||||||||||||||||||||||||
| 232 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 233 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 234 | "\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" | - | ||||||||||||||||||||||||
| 235 | , 5) | - | ||||||||||||||||||||||||
| 236 | , | - | ||||||||||||||||||||||||
| 237 | stdout | - | ||||||||||||||||||||||||
| 238 | ) | - | ||||||||||||||||||||||||
| 239 | ; | - | ||||||||||||||||||||||||
| 240 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 241 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 242 | " --help display this help and exit\n" | - | ||||||||||||||||||||||||
| 243 | , 5) | - | ||||||||||||||||||||||||
| 244 | , | - | ||||||||||||||||||||||||
| 245 | stdout | - | ||||||||||||||||||||||||
| 246 | ); | - | ||||||||||||||||||||||||
| 247 | fputs_unlocked ( | - | ||||||||||||||||||||||||
| 248 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 249 | " --version output version information and exit\n" | - | ||||||||||||||||||||||||
| 250 | , 5) | - | ||||||||||||||||||||||||
| 251 | , | - | ||||||||||||||||||||||||
| 252 | stdout | - | ||||||||||||||||||||||||
| 253 | ); | - | ||||||||||||||||||||||||
| 254 | printf ( | - | ||||||||||||||||||||||||
| 255 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 256 | "\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" | - | ||||||||||||||||||||||||
| 257 | , 5) | - | ||||||||||||||||||||||||
| 258 | - | |||||||||||||||||||||||||
| 259 | - | |||||||||||||||||||||||||
| 260 | - | |||||||||||||||||||||||||
| 261 | - | |||||||||||||||||||||||||
| 262 | - | |||||||||||||||||||||||||
| 263 | , | - | ||||||||||||||||||||||||
| 264 | "RFC 1321"); | - | ||||||||||||||||||||||||
| 265 | emit_ancillary_info ("md5sum"); | - | ||||||||||||||||||||||||
| 266 | } executed 112 times by 7 tests: end of blockExecuted by:
| 112 | ||||||||||||||||||||||||
| 267 | - | |||||||||||||||||||||||||
| 268 | exit (status); executed 136 times by 7 tests: exit (status);Executed by:
| 136 | ||||||||||||||||||||||||
| 269 | } | - | ||||||||||||||||||||||||
| 270 | static char * | - | ||||||||||||||||||||||||
| 271 | filename_unescape (char *s, size_t s_len) | - | ||||||||||||||||||||||||
| 272 | { | - | ||||||||||||||||||||||||
| 273 | char *dst = s; | - | ||||||||||||||||||||||||
| 274 | - | |||||||||||||||||||||||||
| 275 | for (size_t i = 0; i < s_len
| 3-8 | ||||||||||||||||||||||||
| 276 | { | - | ||||||||||||||||||||||||
| 277 | switch (s[i]) | - | ||||||||||||||||||||||||
| 278 | { | - | ||||||||||||||||||||||||
| 279 | case executed 3 times by 1 test: '\\':case '\\':Executed by:
executed 3 times by 1 test: case '\\':Executed by:
| 3 | ||||||||||||||||||||||||
| 280 | if (i == s_len - 1
| 0-3 | ||||||||||||||||||||||||
| 281 | { | - | ||||||||||||||||||||||||
| 282 | - | |||||||||||||||||||||||||
| 283 | return never executed: return ((void *)0) ;never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 284 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 285 | ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 286 | } | - | ||||||||||||||||||||||||
| 287 | ++i; | - | ||||||||||||||||||||||||
| 288 | switch (s[i]) | - | ||||||||||||||||||||||||
| 289 | { | - | ||||||||||||||||||||||||
| 290 | case executed 1 time by 1 test: 'n':case 'n':Executed by:
executed 1 time by 1 test: case 'n':Executed by:
| 1 | ||||||||||||||||||||||||
| 291 | *dst++ = '\n'; | - | ||||||||||||||||||||||||
| 292 | break; executed 1 time by 1 test: break;Executed by:
| 1 | ||||||||||||||||||||||||
| 293 | case executed 2 times by 1 test: '\\':case '\\':Executed by:
executed 2 times by 1 test: case '\\':Executed by:
| 2 | ||||||||||||||||||||||||
| 294 | *dst++ = '\\'; | - | ||||||||||||||||||||||||
| 295 | break; executed 2 times by 1 test: break;Executed by:
| 2 | ||||||||||||||||||||||||
| 296 | default never executed: :default:never executed: default: | 0 | ||||||||||||||||||||||||
| 297 | - | |||||||||||||||||||||||||
| 298 | return never executed: return ((void *)0) ;never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 299 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 300 | ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 301 | } | - | ||||||||||||||||||||||||
| 302 | break; executed 3 times by 1 test: break;Executed by:
| 3 | ||||||||||||||||||||||||
| 303 | - | |||||||||||||||||||||||||
| 304 | case never executed: '\0':case '\0':never executed: case '\0': | 0 | ||||||||||||||||||||||||
| 305 | - | |||||||||||||||||||||||||
| 306 | return never executed: return ((void *)0) ;never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 307 | ((void *)0) never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 308 | ; never executed: return ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 309 | - | |||||||||||||||||||||||||
| 310 | default executed 5 times by 1 test: :default:Executed by:
executed 5 times by 1 test: default:Executed by:
| 5 | ||||||||||||||||||||||||
| 311 | *dst++ = s[i]; | - | ||||||||||||||||||||||||
| 312 | break; executed 5 times by 1 test: break;Executed by:
| 5 | ||||||||||||||||||||||||
| 313 | } | - | ||||||||||||||||||||||||
| 314 | } | - | ||||||||||||||||||||||||
| 315 | if (dst < s + s_len
| 0-3 | ||||||||||||||||||||||||
| 316 | * executed 3 times by 1 test: dst = '\0';*dst = '\0';Executed by:
executed 3 times by 1 test: *dst = '\0';Executed by:
| 3 | ||||||||||||||||||||||||
| 317 | - | |||||||||||||||||||||||||
| 318 | return executed 3 times by 1 test: s;return s;Executed by:
executed 3 times by 1 test: return s;Executed by:
| 3 | ||||||||||||||||||||||||
| 319 | } | - | ||||||||||||||||||||||||
| 320 | - | |||||||||||||||||||||||||
| 321 | - | |||||||||||||||||||||||||
| 322 | - | |||||||||||||||||||||||||
| 323 | static | - | ||||||||||||||||||||||||
| 324 | _Bool | - | ||||||||||||||||||||||||
| 325 | __attribute__ ((__pure__)) | - | ||||||||||||||||||||||||
| 326 | hex_digits (unsigned char const *s) | - | ||||||||||||||||||||||||
| 327 | { | - | ||||||||||||||||||||||||
| 328 | for (unsigned int i = 0; i < digest_hex_bytes
| 78-3682 | ||||||||||||||||||||||||
| 329 | { | - | ||||||||||||||||||||||||
| 330 | if (!
| 2-3680 | ||||||||||||||||||||||||
| 331 | ((*__ctype_b_loc ())[(int) ((
| 2-3680 | ||||||||||||||||||||||||
| 332 | *s
| 2-3680 | ||||||||||||||||||||||||
| 333 | ))] & (unsigned short int) _ISxdigit)
| 2-3680 | ||||||||||||||||||||||||
| 334 | ) | - | ||||||||||||||||||||||||
| 335 | return executed 2 times by 1 test: return 0 ;Executed by:
executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 336 | 0 executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 337 | ; executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 338 | ++s; | - | ||||||||||||||||||||||||
| 339 | } executed 3680 times by 3 tests: end of blockExecuted by:
| 3680 | ||||||||||||||||||||||||
| 340 | 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 | ||||||||||||||||||||||||
| 341 | } | - | ||||||||||||||||||||||||
| 342 | - | |||||||||||||||||||||||||
| 343 | - | |||||||||||||||||||||||||
| 344 | - | |||||||||||||||||||||||||
| 345 | - | |||||||||||||||||||||||||
| 346 | - | |||||||||||||||||||||||||
| 347 | static | - | ||||||||||||||||||||||||
| 348 | _Bool | - | ||||||||||||||||||||||||
| 349 | - | |||||||||||||||||||||||||
| 350 | bsd_split_3 (char *s, size_t s_len, unsigned char **hex_digest, | - | ||||||||||||||||||||||||
| 351 | char **file_name, | - | ||||||||||||||||||||||||
| 352 | _Bool | - | ||||||||||||||||||||||||
| 353 | escaped_filename) | - | ||||||||||||||||||||||||
| 354 | { | - | ||||||||||||||||||||||||
| 355 | size_t i; | - | ||||||||||||||||||||||||
| 356 | - | |||||||||||||||||||||||||
| 357 | if (s_len == 0
| 4-37 | ||||||||||||||||||||||||
| 358 | return executed 4 times by 3 tests: return 0 ;Executed by:
executed 4 times by 3 tests: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 359 | 0 executed 4 times by 3 tests: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 360 | ; executed 4 times by 3 tests: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 361 | - | |||||||||||||||||||||||||
| 362 | - | |||||||||||||||||||||||||
| 363 | i = s_len - 1; | - | ||||||||||||||||||||||||
| 364 | while (i
| 0-2310 | ||||||||||||||||||||||||
| 365 | i--; executed 2273 times by 3 tests: i--;Executed by:
| 2273 | ||||||||||||||||||||||||
| 366 | - | |||||||||||||||||||||||||
| 367 | if (s[i] != ')'
| 0-37 | ||||||||||||||||||||||||
| 368 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 369 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 370 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 371 | - | |||||||||||||||||||||||||
| 372 | *file_name = s; | - | ||||||||||||||||||||||||
| 373 | - | |||||||||||||||||||||||||
| 374 | if (escaped_filename
| 0-34 | ||||||||||||||||||||||||
| 375 | ((void *)0)
| 0-3 | ||||||||||||||||||||||||
| 376 | ) | - | ||||||||||||||||||||||||
| 377 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 378 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 379 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 380 | - | |||||||||||||||||||||||||
| 381 | s[i++] = '\0'; | - | ||||||||||||||||||||||||
| 382 | - | |||||||||||||||||||||||||
| 383 | while (((
| 0-37 | ||||||||||||||||||||||||
| 384 | i++; executed 23 times by 3 tests: i++;Executed by:
| 23 | ||||||||||||||||||||||||
| 385 | - | |||||||||||||||||||||||||
| 386 | if (s[i] != '='
| 0-37 | ||||||||||||||||||||||||
| 387 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 388 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 389 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 390 | - | |||||||||||||||||||||||||
| 391 | i++; | - | ||||||||||||||||||||||||
| 392 | - | |||||||||||||||||||||||||
| 393 | while (((
| 0-37 | ||||||||||||||||||||||||
| 394 | i++; executed 37 times by 3 tests: i++;Executed by:
| 37 | ||||||||||||||||||||||||
| 395 | - | |||||||||||||||||||||||||
| 396 | *hex_digest = (unsigned char *) &s[i]; | - | ||||||||||||||||||||||||
| 397 | - | |||||||||||||||||||||||||
| 398 | 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 | ||||||||||||||||||||||||
| 399 | } | - | ||||||||||||||||||||||||
| 400 | - | |||||||||||||||||||||||||
| 401 | - | |||||||||||||||||||||||||
| 402 | - | |||||||||||||||||||||||||
| 403 | - | |||||||||||||||||||||||||
| 404 | - | |||||||||||||||||||||||||
| 405 | static | - | ||||||||||||||||||||||||
| 406 | _Bool | - | ||||||||||||||||||||||||
| 407 | - | |||||||||||||||||||||||||
| 408 | split_3 (char *s, size_t s_len, | - | ||||||||||||||||||||||||
| 409 | unsigned char **hex_digest, int *binary, char **file_name) | - | ||||||||||||||||||||||||
| 410 | { | - | ||||||||||||||||||||||||
| 411 | - | |||||||||||||||||||||||||
| 412 | _Bool | - | ||||||||||||||||||||||||
| 413 | escaped_filename = | - | ||||||||||||||||||||||||
| 414 | 0 | - | ||||||||||||||||||||||||
| 415 | ; | - | ||||||||||||||||||||||||
| 416 | size_t algo_name_len; | - | ||||||||||||||||||||||||
| 417 | - | |||||||||||||||||||||||||
| 418 | size_t i = 0; | - | ||||||||||||||||||||||||
| 419 | while (((
| 0-95 | ||||||||||||||||||||||||
| 420 | ++ never executed: i;++i;never executed: ++i; | 0 | ||||||||||||||||||||||||
| 421 | - | |||||||||||||||||||||||||
| 422 | if (s[i] == '\\'
| 3-92 | ||||||||||||||||||||||||
| 423 | { | - | ||||||||||||||||||||||||
| 424 | ++i; | - | ||||||||||||||||||||||||
| 425 | escaped_filename = | - | ||||||||||||||||||||||||
| 426 | 1 | - | ||||||||||||||||||||||||
| 427 | ; | - | ||||||||||||||||||||||||
| 428 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||
| 429 | - | |||||||||||||||||||||||||
| 430 | - | |||||||||||||||||||||||||
| 431 | - | |||||||||||||||||||||||||
| 432 | algo_name_len = strlen ("MD5"); | - | ||||||||||||||||||||||||
| 433 | if ((
| 44-51 | ||||||||||||||||||||||||
| 434 | (__extension__ (__builtin_constant_p (
| 0-95 | ||||||||||||||||||||||||
| 435 | algo_name_len
| 0-95 | ||||||||||||||||||||||||
| 436 | )
| 0-95 | ||||||||||||||||||||||||
| 437 | s + i
| 0-95 | ||||||||||||||||||||||||
| 438 | )
| 0-95 | ||||||||||||||||||||||||
| 439 | s + i
| 0-51 | ||||||||||||||||||||||||
| 440 | ) < ((size_t) (
| 0-51 | ||||||||||||||||||||||||
| 441 | algo_name_len
| 0-51 | ||||||||||||||||||||||||
| 442 | ))
| 0-95 | ||||||||||||||||||||||||
| 443 | "MD5"
| 0-95 | ||||||||||||||||||||||||
| 444 | )
| 0-95 | ||||||||||||||||||||||||
| 445 | "MD5"
| 0-95 | ||||||||||||||||||||||||
| 446 | ) < ((size_t) (
| 0-95 | ||||||||||||||||||||||||
| 447 | algo_name_len
| 0-95 | ||||||||||||||||||||||||
| 448 | ))
| 0-95 | ||||||||||||||||||||||||
| 449 | s + i
| 44-51 | ||||||||||||||||||||||||
| 450 | ) && __builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||
| 451 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 452 | ) && (__s1_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||
| 453 | s + i
| 44-51 | ||||||||||||||||||||||||
| 454 | ), __s2_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||
| 455 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 456 | ), (!((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||
| 457 | s + i
| 44-51 | ||||||||||||||||||||||||
| 458 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||
| 459 | s + i
| 44-51 | ||||||||||||||||||||||||
| 460 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||
| 461 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 462 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||
| 463 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 464 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 44-51 | ||||||||||||||||||||||||
| 465 | s + i
| 44-51 | ||||||||||||||||||||||||
| 466 | ,
| 44-51 | ||||||||||||||||||||||||
| 467 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 468 | ) : (__builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||
| 469 | s + i
| 44-51 | ||||||||||||||||||||||||
| 470 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||
| 471 | s + i
| 44-51 | ||||||||||||||||||||||||
| 472 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||
| 473 | s + i
| 44-51 | ||||||||||||||||||||||||
| 474 | ) == 1) && (__s1_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||
| 475 | s + i
| 44-51 | ||||||||||||||||||||||||
| 476 | ), __s1_len < 4) ? (__builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||
| 477 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 478 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||
| 479 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 480 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||
| 481 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 482 | ) == 1) ? __builtin_strcmp (
| 44-51 | ||||||||||||||||||||||||
| 483 | s + i
| 44-51 | ||||||||||||||||||||||||
| 484 | ,
| 44-51 | ||||||||||||||||||||||||
| 485 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 486 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||
| 487 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 488 | ); int __result = (((const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||
| 489 | s + i
| 44-51 | ||||||||||||||||||||||||
| 490 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-51 | ||||||||||||||||||||||||
| 491 | s + i
| 44-51 | ||||||||||||||||||||||||
| 492 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-51 | ||||||||||||||||||||||||
| 493 | s + i
| 44-51 | ||||||||||||||||||||||||
| 494 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]);
| 0-51 | ||||||||||||||||||||||||
| 495 | s + i
never executed: __result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]); | 0-51 | ||||||||||||||||||||||||
| 496 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( s + i ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-51 | ||||||||||||||||||||||||
| 497 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 498 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||
| 499 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 500 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||
| 501 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 502 | ) == 1) && (__s2_len = __builtin_strlen (
| 44-51 | ||||||||||||||||||||||||
| 503 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 504 | ), __s2_len < 4) ? (__builtin_constant_p (
| 44-51 | ||||||||||||||||||||||||
| 505 | s + i
| 44-51 | ||||||||||||||||||||||||
| 506 | ) && ((size_t)(const void *)((
| 44-51 | ||||||||||||||||||||||||
| 507 | s + i
| 44-51 | ||||||||||||||||||||||||
| 508 | ) + 1) - (size_t)(const void *)(
| 44-51 | ||||||||||||||||||||||||
| 509 | s + i
| 44-51 | ||||||||||||||||||||||||
| 510 | ) == 1) ? __builtin_strcmp (
| 44-51 | ||||||||||||||||||||||||
| 511 | s + i
| 44-51 | ||||||||||||||||||||||||
| 512 | ,
| 44-51 | ||||||||||||||||||||||||
| 513 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 514 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||
| 515 | s + i
| 44-51 | ||||||||||||||||||||||||
| 516 | ); int __result = (((const unsigned char *) (const char *) (
| 44-51 | ||||||||||||||||||||||||
| 517 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 518 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-51 | ||||||||||||||||||||||||
| 519 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 520 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-51 | ||||||||||||||||||||||||
| 521 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 522 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "MD5" ))[3] - __s2[3]);
| 0-51 | ||||||||||||||||||||||||
| 523 | "MD5"
never executed: __result = (((const unsigned char *) (const char *) ( "MD5" ))[3] - __s2[3]); | 0-51 | ||||||||||||||||||||||||
| 524 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "MD5" ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : __builtin_strcmp (end of block
| 0-51 | ||||||||||||||||||||||||
| 525 | s + i
| 44-51 | ||||||||||||||||||||||||
| 526 | ,
| 44-51 | ||||||||||||||||||||||||
| 527 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 528 | )))); }) : strncmp (
| 44-51 | ||||||||||||||||||||||||
| 529 | s + i
| 44-51 | ||||||||||||||||||||||||
| 530 | ,
| 44-51 | ||||||||||||||||||||||||
| 531 | "MD5"
| 44-51 | ||||||||||||||||||||||||
| 532 | ,
| 44-51 | ||||||||||||||||||||||||
| 533 | algo_name_len
| 44-51 | ||||||||||||||||||||||||
| 534 | )))
| 44-51 | ||||||||||||||||||||||||
| 535 | == 0)
| 44-51 | ||||||||||||||||||||||||
| 536 | { | - | ||||||||||||||||||||||||
| 537 | i += algo_name_len; | - | ||||||||||||||||||||||||
| 538 | if (s[i] == ' '
| 20-23 | ||||||||||||||||||||||||
| 539 | ++ executed 20 times by 3 tests: i;++i;Executed by:
executed 20 times by 3 tests: ++i;Executed by:
| 20 | ||||||||||||||||||||||||
| 540 | if (s[i] == '('
| 2-41 | ||||||||||||||||||||||||
| 541 | { | - | ||||||||||||||||||||||||
| 542 | ++i; | - | ||||||||||||||||||||||||
| 543 | *binary = 0; | - | ||||||||||||||||||||||||
| 544 | 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 | ||||||||||||||||||||||||
| 545 | 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 | ||||||||||||||||||||||||
| 546 | } | - | ||||||||||||||||||||||||
| 547 | return executed 2 times by 1 test: return 0 ;Executed by:
executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 548 | 0 executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 549 | ; executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 550 | } | - | ||||||||||||||||||||||||
| 551 | - | |||||||||||||||||||||||||
| 552 | - | |||||||||||||||||||||||||
| 553 | - | |||||||||||||||||||||||||
| 554 | - | |||||||||||||||||||||||||
| 555 | - | |||||||||||||||||||||||||
| 556 | if (s_len - i < min_digest_line_length + (s[i] == '\\')
| 4-47 | ||||||||||||||||||||||||
| 557 | return executed 4 times by 1 test: return 0 ;Executed by:
executed 4 times by 1 test: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 558 | 0 executed 4 times by 1 test: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 559 | ; executed 4 times by 1 test: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 560 | - | |||||||||||||||||||||||||
| 561 | *hex_digest = (unsigned char *) &s[i]; | - | ||||||||||||||||||||||||
| 562 | i += digest_hex_bytes; | - | ||||||||||||||||||||||||
| 563 | if (!((
| 0-43 | ||||||||||||||||||||||||
| 564 | return executed 4 times by 2 tests: return 0 ;Executed by:
executed 4 times by 2 tests: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 565 | 0 executed 4 times by 2 tests: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 566 | ; executed 4 times by 2 tests: return 0 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 567 | - | |||||||||||||||||||||||||
| 568 | s[i++] = '\0'; | - | ||||||||||||||||||||||||
| 569 | - | |||||||||||||||||||||||||
| 570 | if (! hex_digits (*hex_digest)
| 2-41 | ||||||||||||||||||||||||
| 571 | return executed 2 times by 1 test: return 0 ;Executed by:
executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 572 | 0 executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 573 | ; executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 574 | - | |||||||||||||||||||||||||
| 575 | - | |||||||||||||||||||||||||
| 576 | if ((
| 2-38 | ||||||||||||||||||||||||
| 577 | { | - | ||||||||||||||||||||||||
| 578 | - | |||||||||||||||||||||||||
| 579 | - | |||||||||||||||||||||||||
| 580 | - | |||||||||||||||||||||||||
| 581 | - | |||||||||||||||||||||||||
| 582 | - | |||||||||||||||||||||||||
| 583 | - | |||||||||||||||||||||||||
| 584 | if (bsd_reversed == 0
| 2-3 | ||||||||||||||||||||||||
| 585 | return executed 2 times by 1 test: return 0 ;Executed by:
executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 586 | 0 executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 587 | ; executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 588 | bsd_reversed = 1; | - | ||||||||||||||||||||||||
| 589 | } executed 3 times by 1 test: end of blockExecuted by:
| 3 | ||||||||||||||||||||||||
| 590 | else if (bsd_reversed != 1
| 2-34 | ||||||||||||||||||||||||
| 591 | { | - | ||||||||||||||||||||||||
| 592 | bsd_reversed = 0; | - | ||||||||||||||||||||||||
| 593 | *binary = (s[i++] == '*'); | - | ||||||||||||||||||||||||
| 594 | } executed 34 times by 2 tests: end of blockExecuted by:
| 34 | ||||||||||||||||||||||||
| 595 | - | |||||||||||||||||||||||||
| 596 | - | |||||||||||||||||||||||||
| 597 | - | |||||||||||||||||||||||||
| 598 | *file_name = &s[i]; | - | ||||||||||||||||||||||||
| 599 | - | |||||||||||||||||||||||||
| 600 | if (escaped_filename
| 0-39 | ||||||||||||||||||||||||
| 601 | 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 | ||||||||||||||||||||||||
| 602 | ((void *)0) never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 603 | ; never executed: return filename_unescape (&s[i], s_len - i) != ((void *)0) ; | 0 | ||||||||||||||||||||||||
| 604 | - | |||||||||||||||||||||||||
| 605 | return executed 39 times by 2 tests: return 1 ;Executed by:
executed 39 times by 2 tests: return 1 ;Executed by:
| 39 | ||||||||||||||||||||||||
| 606 | 1 executed 39 times by 2 tests: return 1 ;Executed by:
| 39 | ||||||||||||||||||||||||
| 607 | ; executed 39 times by 2 tests: return 1 ;Executed by:
| 39 | ||||||||||||||||||||||||
| 608 | } | - | ||||||||||||||||||||||||
| 609 | - | |||||||||||||||||||||||||
| 610 | - | |||||||||||||||||||||||||
| 611 | - | |||||||||||||||||||||||||
| 612 | static void | - | ||||||||||||||||||||||||
| 613 | print_filename (char const *file, | - | ||||||||||||||||||||||||
| 614 | _Bool | - | ||||||||||||||||||||||||
| 615 | escape) | - | ||||||||||||||||||||||||
| 616 | { | - | ||||||||||||||||||||||||
| 617 | if (! escape
| 10-1865 | ||||||||||||||||||||||||
| 618 | { | - | ||||||||||||||||||||||||
| 619 | fputs_unlocked (file, | - | ||||||||||||||||||||||||
| 620 | stdout | - | ||||||||||||||||||||||||
| 621 | ); | - | ||||||||||||||||||||||||
| 622 | return; executed 1865 times by 7 tests: return;Executed by:
| 1865 | ||||||||||||||||||||||||
| 623 | } | - | ||||||||||||||||||||||||
| 624 | - | |||||||||||||||||||||||||
| 625 | while (*
| 10-45 | ||||||||||||||||||||||||
| 626 | { | - | ||||||||||||||||||||||||
| 627 | switch (*file) | - | ||||||||||||||||||||||||
| 628 | { | - | ||||||||||||||||||||||||
| 629 | case executed 6 times by 2 tests: '\n':case '\n':Executed by:
executed 6 times by 2 tests: case '\n':Executed by:
| 6 | ||||||||||||||||||||||||
| 630 | fputs_unlocked ("\\n", | - | ||||||||||||||||||||||||
| 631 | stdout | - | ||||||||||||||||||||||||
| 632 | ); | - | ||||||||||||||||||||||||
| 633 | break; executed 6 times by 2 tests: break;Executed by:
| 6 | ||||||||||||||||||||||||
| 634 | - | |||||||||||||||||||||||||
| 635 | case executed 6 times by 2 tests: '\\':case '\\':Executed by:
executed 6 times by 2 tests: case '\\':Executed by:
| 6 | ||||||||||||||||||||||||
| 636 | fputs_unlocked ("\\\\", | - | ||||||||||||||||||||||||
| 637 | stdout | - | ||||||||||||||||||||||||
| 638 | ); | - | ||||||||||||||||||||||||
| 639 | break; executed 6 times by 2 tests: break;Executed by:
| 6 | ||||||||||||||||||||||||
| 640 | - | |||||||||||||||||||||||||
| 641 | default executed 33 times by 2 tests: :default:Executed by:
executed 33 times by 2 tests: default:Executed by:
| 33 | ||||||||||||||||||||||||
| 642 | putchar_unlocked (*file); | - | ||||||||||||||||||||||||
| 643 | break; executed 33 times by 2 tests: break;Executed by:
| 33 | ||||||||||||||||||||||||
| 644 | } | - | ||||||||||||||||||||||||
| 645 | file++; | - | ||||||||||||||||||||||||
| 646 | } executed 45 times by 2 tests: end of blockExecuted by:
| 45 | ||||||||||||||||||||||||
| 647 | } executed 10 times by 2 tests: end of blockExecuted by:
| 10 | ||||||||||||||||||||||||
| 648 | static | - | ||||||||||||||||||||||||
| 649 | _Bool | - | ||||||||||||||||||||||||
| 650 | - | |||||||||||||||||||||||||
| 651 | digest_file (const char *filename, int *binary, unsigned char *bin_result, | - | ||||||||||||||||||||||||
| 652 | - | |||||||||||||||||||||||||
| 653 | _Bool | - | ||||||||||||||||||||||||
| 654 | *missing) | - | ||||||||||||||||||||||||
| 655 | { | - | ||||||||||||||||||||||||
| 656 | FILE *fp; | - | ||||||||||||||||||||||||
| 657 | int err; | - | ||||||||||||||||||||||||
| 658 | - | |||||||||||||||||||||||||
| 659 | _Bool | - | ||||||||||||||||||||||||
| 660 | is_stdin = ( | - | ||||||||||||||||||||||||
| 661 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 662 | filename | - | ||||||||||||||||||||||||
| 663 | ) && __builtin_constant_p ( | - | ||||||||||||||||||||||||
| 664 | "-" | - | ||||||||||||||||||||||||
| 665 | ) && (__s1_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 666 | filename | - | ||||||||||||||||||||||||
| 667 | ), __s2_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 668 | "-" | - | ||||||||||||||||||||||||
| 669 | ), (!((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 670 | filename | - | ||||||||||||||||||||||||
| 671 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 672 | filename | - | ||||||||||||||||||||||||
| 673 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 674 | "-" | - | ||||||||||||||||||||||||
| 675 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 676 | "-" | - | ||||||||||||||||||||||||
| 677 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||
| 678 | filename | - | ||||||||||||||||||||||||
| 679 | , | - | ||||||||||||||||||||||||
| 680 | "-" | - | ||||||||||||||||||||||||
| 681 | ) : (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 682 | filename | - | ||||||||||||||||||||||||
| 683 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 684 | filename | - | ||||||||||||||||||||||||
| 685 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 686 | filename | - | ||||||||||||||||||||||||
| 687 | ) == 1) && (__s1_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 688 | filename | - | ||||||||||||||||||||||||
| 689 | ), __s1_len < 4) ? (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 690 | "-" | - | ||||||||||||||||||||||||
| 691 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 692 | "-" | - | ||||||||||||||||||||||||
| 693 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 694 | "-" | - | ||||||||||||||||||||||||
| 695 | ) == 1) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||
| 696 | filename | - | ||||||||||||||||||||||||
| 697 | , | - | ||||||||||||||||||||||||
| 698 | "-" | - | ||||||||||||||||||||||||
| 699 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 700 | "-" | - | ||||||||||||||||||||||||
| 701 | ); int __result = (((const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 702 | filename | - | ||||||||||||||||||||||||
| 703 | ))[0] - __s2[0]); if (__s1_len > 0
| 0 | ||||||||||||||||||||||||
| 704 | filename | - | ||||||||||||||||||||||||
| 705 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||
| 706 | filename | - | ||||||||||||||||||||||||
| 707 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 708 | filename never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 709 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block | 0 | ||||||||||||||||||||||||
| 710 | "-" | - | ||||||||||||||||||||||||
| 711 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 712 | "-" | - | ||||||||||||||||||||||||
| 713 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 714 | "-" | - | ||||||||||||||||||||||||
| 715 | ) == 1) && (__s2_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 716 | "-" | - | ||||||||||||||||||||||||
| 717 | ), __s2_len < 4) ? (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 718 | filename | - | ||||||||||||||||||||||||
| 719 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 720 | filename | - | ||||||||||||||||||||||||
| 721 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 722 | filename | - | ||||||||||||||||||||||||
| 723 | ) == 1) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||
| 724 | filename | - | ||||||||||||||||||||||||
| 725 | , | - | ||||||||||||||||||||||||
| 726 | "-" | - | ||||||||||||||||||||||||
| 727 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 728 | filename | - | ||||||||||||||||||||||||
| 729 | ); int __result = (((const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 730 | "-" | - | ||||||||||||||||||||||||
| 731 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-1886 | ||||||||||||||||||||||||
| 732 | "-" | - | ||||||||||||||||||||||||
| 733 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-13 | ||||||||||||||||||||||||
| 734 | "-" | - | ||||||||||||||||||||||||
| 735 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 736 | "-" never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 737 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: }end of blockexecuted 13 times by 7 tests: __result; }))) : __builtin_strcmp (end of blockExecuted by:
| 0-13 | ||||||||||||||||||||||||
| 738 | filename | - | ||||||||||||||||||||||||
| 739 | , | - | ||||||||||||||||||||||||
| 740 | "-" | - | ||||||||||||||||||||||||
| 741 | )))); }) | - | ||||||||||||||||||||||||
| 742 | == 0); | - | ||||||||||||||||||||||||
| 743 | - | |||||||||||||||||||||||||
| 744 | *missing = | - | ||||||||||||||||||||||||
| 745 | 0 | - | ||||||||||||||||||||||||
| 746 | ; | - | ||||||||||||||||||||||||
| 747 | - | |||||||||||||||||||||||||
| 748 | if (is_stdin
| 13-1873 | ||||||||||||||||||||||||
| 749 | { | - | ||||||||||||||||||||||||
| 750 | have_read_stdin = | - | ||||||||||||||||||||||||
| 751 | 1 | - | ||||||||||||||||||||||||
| 752 | ; | - | ||||||||||||||||||||||||
| 753 | fp = | - | ||||||||||||||||||||||||
| 754 | stdin | - | ||||||||||||||||||||||||
| 755 | ; | - | ||||||||||||||||||||||||
| 756 | if ( | - | ||||||||||||||||||||||||
| 757 | 0 | - | ||||||||||||||||||||||||
| 758 | && * dead code: binary*binarydead code: )*binary | - | ||||||||||||||||||||||||
| 759 | { dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 760 | if (*binary < 0) dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 761 | *binary = ! isatty ( dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 762 | 0 dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 763 | ); dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 764 | if (*binary) dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 765 | xset_binary_mode ( dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 766 | 0 dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 767 | , dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 768 | 0 dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 769 | ); dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 770 | } dead code: { if (*binary < 0) *binary = ! isatty ( 0 ); if (*binary) xset_binary_mode ( 0 , 0 ); } | - | ||||||||||||||||||||||||
| 771 | } executed 13 times by 7 tests: end of blockExecuted by:
| 13 | ||||||||||||||||||||||||
| 772 | else | - | ||||||||||||||||||||||||
| 773 | { | - | ||||||||||||||||||||||||
| 774 | fp = fopen_safer (filename, ( | - | ||||||||||||||||||||||||
| 775 | 0 | - | ||||||||||||||||||||||||
| 776 | && *binary ? "rb" : "r")); | - | ||||||||||||||||||||||||
| 777 | if (fp ==
| 6-1867 | ||||||||||||||||||||||||
| 778 | ((void *)0)
| 6-1867 | ||||||||||||||||||||||||
| 779 | ) | - | ||||||||||||||||||||||||
| 780 | { | - | ||||||||||||||||||||||||
| 781 | if (ignore_missing
| 2-4 | ||||||||||||||||||||||||
| 782 | (*
| 0-4 | ||||||||||||||||||||||||
| 783 | ==
| 0-4 | ||||||||||||||||||||||||
| 784 | 2
| 0-4 | ||||||||||||||||||||||||
| 785 | ) | - | ||||||||||||||||||||||||
| 786 | { | - | ||||||||||||||||||||||||
| 787 | *missing = | - | ||||||||||||||||||||||||
| 788 | 1 | - | ||||||||||||||||||||||||
| 789 | ; | - | ||||||||||||||||||||||||
| 790 | return executed 4 times by 1 test: return 1 ;Executed by:
executed 4 times by 1 test: return 1 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 791 | 1 executed 4 times by 1 test: return 1 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 792 | ; executed 4 times by 1 test: return 1 ;Executed by:
| 4 | ||||||||||||||||||||||||
| 793 | } | - | ||||||||||||||||||||||||
| 794 | error (0, | - | ||||||||||||||||||||||||
| 795 | (*__errno_location ()) | - | ||||||||||||||||||||||||
| 796 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - | ||||||||||||||||||||||||
| 797 | return executed 2 times by 1 test: return 0 ;Executed by:
executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 798 | 0 executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 799 | ; executed 2 times by 1 test: return 0 ;Executed by:
| 2 | ||||||||||||||||||||||||
| 800 | } | - | ||||||||||||||||||||||||
| 801 | } executed 1867 times by 7 tests: end of blockExecuted by:
| 1867 | ||||||||||||||||||||||||
| 802 | - | |||||||||||||||||||||||||
| 803 | fadvise (fp, FADVISE_SEQUENTIAL); | - | ||||||||||||||||||||||||
| 804 | - | |||||||||||||||||||||||||
| 805 | - | |||||||||||||||||||||||||
| 806 | - | |||||||||||||||||||||||||
| 807 | - | |||||||||||||||||||||||||
| 808 | err = md5_stream (fp, bin_result); | - | ||||||||||||||||||||||||
| 809 | - | |||||||||||||||||||||||||
| 810 | if (err
| 0-1880 | ||||||||||||||||||||||||
| 811 | { | - | ||||||||||||||||||||||||
| 812 | error (0, | - | ||||||||||||||||||||||||
| 813 | (*__errno_location ()) | - | ||||||||||||||||||||||||
| 814 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - | ||||||||||||||||||||||||
| 815 | if (fp !=
| 0 | ||||||||||||||||||||||||
| 816 | stdin
| 0 | ||||||||||||||||||||||||
| 817 | ) | - | ||||||||||||||||||||||||
| 818 | - | |||||||||||||||||||||||||
| 819 | rpl_fclose never executed: rpl_fclose (fp); | 0 | ||||||||||||||||||||||||
| 820 | (fp); never executed: rpl_fclose (fp); | 0 | ||||||||||||||||||||||||
| 821 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 822 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 823 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 824 | } | - | ||||||||||||||||||||||||
| 825 | - | |||||||||||||||||||||||||
| 826 | if (!is_stdin
| 13-1867 | ||||||||||||||||||||||||
| 827 | rpl_fclose
| 0-1867 | ||||||||||||||||||||||||
| 828 | (fp) != 0
| 0-1867 | ||||||||||||||||||||||||
| 829 | { | - | ||||||||||||||||||||||||
| 830 | error (0, | - | ||||||||||||||||||||||||
| 831 | (*__errno_location ()) | - | ||||||||||||||||||||||||
| 832 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, filename)); | - | ||||||||||||||||||||||||
| 833 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 834 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 835 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 836 | } | - | ||||||||||||||||||||||||
| 837 | - | |||||||||||||||||||||||||
| 838 | return executed 1880 times by 7 tests: return 1 ;Executed by:
executed 1880 times by 7 tests: return 1 ;Executed by:
| 1880 | ||||||||||||||||||||||||
| 839 | 1 executed 1880 times by 7 tests: return 1 ;Executed by:
| 1880 | ||||||||||||||||||||||||
| 840 | ; executed 1880 times by 7 tests: return 1 ;Executed by:
| 1880 | ||||||||||||||||||||||||
| 841 | } | - | ||||||||||||||||||||||||
| 842 | - | |||||||||||||||||||||||||
| 843 | static | - | ||||||||||||||||||||||||
| 844 | _Bool | - | ||||||||||||||||||||||||
| 845 | - | |||||||||||||||||||||||||
| 846 | digest_check (const char *checkfile_name) | - | ||||||||||||||||||||||||
| 847 | { | - | ||||||||||||||||||||||||
| 848 | FILE *checkfile_stream; | - | ||||||||||||||||||||||||
| 849 | uintmax_t n_misformatted_lines = 0; | - | ||||||||||||||||||||||||
| 850 | uintmax_t n_improperly_formatted_lines = 0; | - | ||||||||||||||||||||||||
| 851 | uintmax_t n_mismatched_checksums = 0; | - | ||||||||||||||||||||||||
| 852 | uintmax_t n_open_or_read_failures = 0; | - | ||||||||||||||||||||||||
| 853 | - | |||||||||||||||||||||||||
| 854 | _Bool | - | ||||||||||||||||||||||||
| 855 | properly_formatted_lines = | - | ||||||||||||||||||||||||
| 856 | 0 | - | ||||||||||||||||||||||||
| 857 | ; | - | ||||||||||||||||||||||||
| 858 | - | |||||||||||||||||||||||||
| 859 | _Bool | - | ||||||||||||||||||||||||
| 860 | matched_checksums = | - | ||||||||||||||||||||||||
| 861 | 0 | - | ||||||||||||||||||||||||
| 862 | ; | - | ||||||||||||||||||||||||
| 863 | unsigned char bin_buffer_unaligned[(128 / 8) + 4]; | - | ||||||||||||||||||||||||
| 864 | - | |||||||||||||||||||||||||
| 865 | unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, 4); | - | ||||||||||||||||||||||||
| 866 | uintmax_t line_number; | - | ||||||||||||||||||||||||
| 867 | char *line; | - | ||||||||||||||||||||||||
| 868 | size_t line_chars_allocated; | - | ||||||||||||||||||||||||
| 869 | - | |||||||||||||||||||||||||
| 870 | _Bool | - | ||||||||||||||||||||||||
| 871 | is_stdin = ( | - | ||||||||||||||||||||||||
| 872 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 873 | checkfile_name | - | ||||||||||||||||||||||||
| 874 | ) && __builtin_constant_p ( | - | ||||||||||||||||||||||||
| 875 | "-" | - | ||||||||||||||||||||||||
| 876 | ) && (__s1_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 877 | checkfile_name | - | ||||||||||||||||||||||||
| 878 | ), __s2_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 879 | "-" | - | ||||||||||||||||||||||||
| 880 | ), (!((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 881 | checkfile_name | - | ||||||||||||||||||||||||
| 882 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 883 | checkfile_name | - | ||||||||||||||||||||||||
| 884 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 885 | "-" | - | ||||||||||||||||||||||||
| 886 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 887 | "-" | - | ||||||||||||||||||||||||
| 888 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||
| 889 | checkfile_name | - | ||||||||||||||||||||||||
| 890 | , | - | ||||||||||||||||||||||||
| 891 | "-" | - | ||||||||||||||||||||||||
| 892 | ) : (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 893 | checkfile_name | - | ||||||||||||||||||||||||
| 894 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 895 | checkfile_name | - | ||||||||||||||||||||||||
| 896 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 897 | checkfile_name | - | ||||||||||||||||||||||||
| 898 | ) == 1) && (__s1_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 899 | checkfile_name | - | ||||||||||||||||||||||||
| 900 | ), __s1_len < 4) ? (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 901 | "-" | - | ||||||||||||||||||||||||
| 902 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 903 | "-" | - | ||||||||||||||||||||||||
| 904 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 905 | "-" | - | ||||||||||||||||||||||||
| 906 | ) == 1) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||
| 907 | checkfile_name | - | ||||||||||||||||||||||||
| 908 | , | - | ||||||||||||||||||||||||
| 909 | "-" | - | ||||||||||||||||||||||||
| 910 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 911 | "-" | - | ||||||||||||||||||||||||
| 912 | ); int __result = (((const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 913 | checkfile_name | - | ||||||||||||||||||||||||
| 914 | ))[0] - __s2[0]); if (__s1_len > 0
| 0 | ||||||||||||||||||||||||
| 915 | checkfile_name | - | ||||||||||||||||||||||||
| 916 | ))[1] - __s2[1]); if (__s1_len > 1
| 0 | ||||||||||||||||||||||||
| 917 | checkfile_name | - | ||||||||||||||||||||||||
| 918 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 919 | checkfile_name never executed: __result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 920 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( checkfile_name ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block | 0 | ||||||||||||||||||||||||
| 921 | "-" | - | ||||||||||||||||||||||||
| 922 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 923 | "-" | - | ||||||||||||||||||||||||
| 924 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 925 | "-" | - | ||||||||||||||||||||||||
| 926 | ) == 1) && (__s2_len = __builtin_strlen ( | - | ||||||||||||||||||||||||
| 927 | "-" | - | ||||||||||||||||||||||||
| 928 | ), __s2_len < 4) ? (__builtin_constant_p ( | - | ||||||||||||||||||||||||
| 929 | checkfile_name | - | ||||||||||||||||||||||||
| 930 | ) && ((size_t)(const void *)(( | - | ||||||||||||||||||||||||
| 931 | checkfile_name | - | ||||||||||||||||||||||||
| 932 | ) + 1) - (size_t)(const void *)( | - | ||||||||||||||||||||||||
| 933 | checkfile_name | - | ||||||||||||||||||||||||
| 934 | ) == 1) ? __builtin_strcmp ( | - | ||||||||||||||||||||||||
| 935 | checkfile_name | - | ||||||||||||||||||||||||
| 936 | , | - | ||||||||||||||||||||||||
| 937 | "-" | - | ||||||||||||||||||||||||
| 938 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 939 | checkfile_name | - | ||||||||||||||||||||||||
| 940 | ); int __result = (((const unsigned char *) (const char *) ( | - | ||||||||||||||||||||||||
| 941 | "-" | - | ||||||||||||||||||||||||
| 942 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-41 | ||||||||||||||||||||||||
| 943 | "-" | - | ||||||||||||||||||||||||
| 944 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-1 | ||||||||||||||||||||||||
| 945 | "-" | - | ||||||||||||||||||||||||
| 946 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 947 | "-" never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0 | ||||||||||||||||||||||||
| 948 | ))[3] - __s2[3]); never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: }end of blockexecuted 1 time by 1 test: __result; }))) : __builtin_strcmp (end of blockExecuted by:
| 0-1 | ||||||||||||||||||||||||
| 949 | checkfile_name | - | ||||||||||||||||||||||||
| 950 | , | - | ||||||||||||||||||||||||
| 951 | "-" | - | ||||||||||||||||||||||||
| 952 | )))); }) | - | ||||||||||||||||||||||||
| 953 | == 0); | - | ||||||||||||||||||||||||
| 954 | - | |||||||||||||||||||||||||
| 955 | if (is_stdin
| 1-40 | ||||||||||||||||||||||||
| 956 | { | - | ||||||||||||||||||||||||
| 957 | have_read_stdin = | - | ||||||||||||||||||||||||
| 958 | 1 | - | ||||||||||||||||||||||||
| 959 | ; | - | ||||||||||||||||||||||||
| 960 | checkfile_name = | - | ||||||||||||||||||||||||
| 961 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 962 | "standard input" | - | ||||||||||||||||||||||||
| 963 | , 5) | - | ||||||||||||||||||||||||
| 964 | ; | - | ||||||||||||||||||||||||
| 965 | checkfile_stream = | - | ||||||||||||||||||||||||
| 966 | stdin | - | ||||||||||||||||||||||||
| 967 | ; | - | ||||||||||||||||||||||||
| 968 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||
| 969 | else | - | ||||||||||||||||||||||||
| 970 | { | - | ||||||||||||||||||||||||
| 971 | checkfile_stream = fopen_safer (checkfile_name, "r"); | - | ||||||||||||||||||||||||
| 972 | if (checkfile_stream ==
| 0-40 | ||||||||||||||||||||||||
| 973 | ((void *)0)
| 0-40 | ||||||||||||||||||||||||
| 974 | ) | - | ||||||||||||||||||||||||
| 975 | { | - | ||||||||||||||||||||||||
| 976 | error (0, | - | ||||||||||||||||||||||||
| 977 | (*__errno_location ()) | - | ||||||||||||||||||||||||
| 978 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); | - | ||||||||||||||||||||||||
| 979 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 980 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 981 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 982 | } | - | ||||||||||||||||||||||||
| 983 | } executed 40 times by 3 tests: end of blockExecuted by:
| 40 | ||||||||||||||||||||||||
| 984 | - | |||||||||||||||||||||||||
| 985 | line_number = 0; | - | ||||||||||||||||||||||||
| 986 | line = | - | ||||||||||||||||||||||||
| 987 | ((void *)0) | - | ||||||||||||||||||||||||
| 988 | ; | - | ||||||||||||||||||||||||
| 989 | line_chars_allocated = 0; | - | ||||||||||||||||||||||||
| 990 | do | - | ||||||||||||||||||||||||
| 991 | { | - | ||||||||||||||||||||||||
| 992 | char *filename ; | - | ||||||||||||||||||||||||
| 993 | int binary; | - | ||||||||||||||||||||||||
| 994 | unsigned char *hex_digest ; | - | ||||||||||||||||||||||||
| 995 | ssize_t line_length; | - | ||||||||||||||||||||||||
| 996 | - | |||||||||||||||||||||||||
| 997 | ++line_number; | - | ||||||||||||||||||||||||
| 998 | if (line_number == 0
| 0-134 | ||||||||||||||||||||||||
| 999 | (( 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 | ||||||||||||||||||||||||
| 1000 | 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 | ||||||||||||||||||||||||
| 1001 | , "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 | ||||||||||||||||||||||||
| 1002 | 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 | ||||||||||||||||||||||||
| 1003 | , 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 | ||||||||||||||||||||||||
| 1004 | 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 | ||||||||||||||||||||||||
| 1005 | "%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 | ||||||||||||||||||||||||
| 1006 | , 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 | ||||||||||||||||||||||||
| 1007 | , 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 | ||||||||||||||||||||||||
| 1008 | 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 | ||||||||||||||||||||||||
| 1009 | ) ? (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 | ||||||||||||||||||||||||
| 1010 | 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 | ||||||||||||||||||||||||
| 1011 | , 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 | ||||||||||||||||||||||||
| 1012 | 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 | ||||||||||||||||||||||||
| 1013 | "%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 | ||||||||||||||||||||||||
| 1014 | , 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 | ||||||||||||||||||||||||
| 1015 | , 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 | ||||||||||||||||||||||||
| 1016 | 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 | ||||||||||||||||||||||||
| 1017 | ) ? (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 | ||||||||||||||||||||||||
| 1018 | ; 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 | ||||||||||||||||||||||||
| 1019 | - | |||||||||||||||||||||||||
| 1020 | line_length = getline (&line, &line_chars_allocated, checkfile_stream); | - | ||||||||||||||||||||||||
| 1021 | if (line_length <= 0
| 39-95 | ||||||||||||||||||||||||
| 1022 | break; executed 39 times by 3 tests: break;Executed by:
| 39 | ||||||||||||||||||||||||
| 1023 | - | |||||||||||||||||||||||||
| 1024 | - | |||||||||||||||||||||||||
| 1025 | if (line[0] == '#'
| 0-95 | ||||||||||||||||||||||||
| 1026 | continue; never executed: continue; | 0 | ||||||||||||||||||||||||
| 1027 | - | |||||||||||||||||||||||||
| 1028 | - | |||||||||||||||||||||||||
| 1029 | if (line[line_length - 1] == '\n'
| 2-93 | ||||||||||||||||||||||||
| 1030 | line[--line_length] = '\0'; executed 93 times by 3 tests: line[--line_length] = '\0';Executed by:
| 93 | ||||||||||||||||||||||||
| 1031 | - | |||||||||||||||||||||||||
| 1032 | if (! (split_3 (line, line_length, &hex_digest, &binary, &filename)
| 19-76 | ||||||||||||||||||||||||
| 1033 | && ! (is_stdin
| 0-74 | ||||||||||||||||||||||||
| 1034 | __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||
| 1035 | filename
| 0-2 | ||||||||||||||||||||||||
| 1036 | ) && __builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||
| 1037 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1038 | ) && (__s1_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||
| 1039 | filename
| 0-2 | ||||||||||||||||||||||||
| 1040 | ), __s2_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||
| 1041 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1042 | ), (!((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||
| 1043 | filename
| 0-2 | ||||||||||||||||||||||||
| 1044 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||
| 1045 | filename
| 0-2 | ||||||||||||||||||||||||
| 1046 | ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||
| 1047 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1048 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||
| 1049 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1050 | ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
| 0-2 | ||||||||||||||||||||||||
| 1051 | filename
| 0-2 | ||||||||||||||||||||||||
| 1052 | ,
| 0-2 | ||||||||||||||||||||||||
| 1053 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1054 | ) : (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||
| 1055 | filename
| 0-2 | ||||||||||||||||||||||||
| 1056 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||
| 1057 | filename
| 0-2 | ||||||||||||||||||||||||
| 1058 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||
| 1059 | filename
| 0-2 | ||||||||||||||||||||||||
| 1060 | ) == 1) && (__s1_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||
| 1061 | filename
| 0-2 | ||||||||||||||||||||||||
| 1062 | ), __s1_len < 4) ? (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||
| 1063 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1064 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||
| 1065 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1066 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||
| 1067 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1068 | ) == 1) ? __builtin_strcmp (
| 0-2 | ||||||||||||||||||||||||
| 1069 | filename
| 0-2 | ||||||||||||||||||||||||
| 1070 | ,
| 0-2 | ||||||||||||||||||||||||
| 1071 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1072 | ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||
| 1073 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1074 | ); int __result = (((const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||
| 1075 | filename
| 0-2 | ||||||||||||||||||||||||
| 1076 | ))[0] - __s2[0]); if (__s1_len > 0
| 0-2 | ||||||||||||||||||||||||
| 1077 | filename
| 0-2 | ||||||||||||||||||||||||
| 1078 | ))[1] - __s2[1]); if (__s1_len > 1
| 0-2 | ||||||||||||||||||||||||
| 1079 | filename
| 0-2 | ||||||||||||||||||||||||
| 1080 | ))[2] - __s2[2]); if (__s1_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);
| 0-2 | ||||||||||||||||||||||||
| 1081 | filename
never executed: __result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]); | 0-2 | ||||||||||||||||||||||||
| 1082 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( filename ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : (__builtin_constant_p (end of block
| 0-2 | ||||||||||||||||||||||||
| 1083 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1084 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||
| 1085 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1086 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||
| 1087 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1088 | ) == 1) && (__s2_len = __builtin_strlen (
| 0-2 | ||||||||||||||||||||||||
| 1089 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1090 | ), __s2_len < 4) ? (__builtin_constant_p (
| 0-2 | ||||||||||||||||||||||||
| 1091 | filename
| 0-2 | ||||||||||||||||||||||||
| 1092 | ) && ((size_t)(const void *)((
| 0-2 | ||||||||||||||||||||||||
| 1093 | filename
| 0-2 | ||||||||||||||||||||||||
| 1094 | ) + 1) - (size_t)(const void *)(
| 0-2 | ||||||||||||||||||||||||
| 1095 | filename
| 0-2 | ||||||||||||||||||||||||
| 1096 | ) == 1) ? __builtin_strcmp (
| 0-2 | ||||||||||||||||||||||||
| 1097 | filename
| 0-2 | ||||||||||||||||||||||||
| 1098 | ,
| 0-2 | ||||||||||||||||||||||||
| 1099 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1100 | ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||
| 1101 | filename
| 0-2 | ||||||||||||||||||||||||
| 1102 | ); int __result = (((const unsigned char *) (const char *) (
| 0-2 | ||||||||||||||||||||||||
| 1103 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1104 | ))[0] - __s2[0]); if (__s2_len > 0
| 0-2 | ||||||||||||||||||||||||
| 1105 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1106 | ))[1] - __s2[1]); if (__s2_len > 1
| 0-2 | ||||||||||||||||||||||||
| 1107 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1108 | ))[2] - __s2[2]); if (__s2_len > 2
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);
| 0-2 | ||||||||||||||||||||||||
| 1109 | "-"
never executed: __result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]); | 0-2 | ||||||||||||||||||||||||
| 1110 | ))[3] - __s2[3]);
never executed: }__result = (((const unsigned char *) (const char *) ( "-" ))[3] - __s2[3]);never executed: }end of blocknever executed: __result; }))) : __builtin_strcmp (end of block
| 0-2 | ||||||||||||||||||||||||
| 1111 | filename
| 0-2 | ||||||||||||||||||||||||
| 1112 | ,
| 0-2 | ||||||||||||||||||||||||
| 1113 | "-"
| 0-2 | ||||||||||||||||||||||||
| 1114 | )))); })
| 0-2 | ||||||||||||||||||||||||
| 1115 | == 0)
| 0-2 | ||||||||||||||||||||||||
| 1116 | { | - | ||||||||||||||||||||||||
| 1117 | ++n_misformatted_lines; | - | ||||||||||||||||||||||||
| 1118 | - | |||||||||||||||||||||||||
| 1119 | if (warn
| 1-18 | ||||||||||||||||||||||||
| 1120 | { | - | ||||||||||||||||||||||||
| 1121 | error (0, 0, | - | ||||||||||||||||||||||||
| 1122 | - | |||||||||||||||||||||||||
| 1123 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1124 | "%s: %" | - | ||||||||||||||||||||||||
| 1125 | "l" "u" | - | ||||||||||||||||||||||||
| 1126 | ": improperly formatted %s checksum line" | - | ||||||||||||||||||||||||
| 1127 | , 5) | - | ||||||||||||||||||||||||
| 1128 | - | |||||||||||||||||||||||||
| 1129 | , | - | ||||||||||||||||||||||||
| 1130 | quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name), line_number, | - | ||||||||||||||||||||||||
| 1131 | "MD5"); | - | ||||||||||||||||||||||||
| 1132 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||
| 1133 | - | |||||||||||||||||||||||||
| 1134 | ++n_improperly_formatted_lines; | - | ||||||||||||||||||||||||
| 1135 | } executed 19 times by 3 tests: end of blockExecuted by:
| 19 | ||||||||||||||||||||||||
| 1136 | else | - | ||||||||||||||||||||||||
| 1137 | { | - | ||||||||||||||||||||||||
| 1138 | static const char bin2hex[] = { '0', '1', '2', '3', | - | ||||||||||||||||||||||||
| 1139 | '4', '5', '6', '7', | - | ||||||||||||||||||||||||
| 1140 | '8', '9', 'a', 'b', | - | ||||||||||||||||||||||||
| 1141 | 'c', 'd', 'e', 'f' }; | - | ||||||||||||||||||||||||
| 1142 | - | |||||||||||||||||||||||||
| 1143 | _Bool | - | ||||||||||||||||||||||||
| 1144 | ok; | - | ||||||||||||||||||||||||
| 1145 | - | |||||||||||||||||||||||||
| 1146 | _Bool | - | ||||||||||||||||||||||||
| 1147 | missing; | - | ||||||||||||||||||||||||
| 1148 | - | |||||||||||||||||||||||||
| 1149 | - | |||||||||||||||||||||||||
| 1150 | - | |||||||||||||||||||||||||
| 1151 | _Bool | - | ||||||||||||||||||||||||
| 1152 | needs_escape = ! status_only
| 5-71 | ||||||||||||||||||||||||
| 1153 | (
| 0-71 | ||||||||||||||||||||||||
| 1154 | '\n'
| 0-71 | ||||||||||||||||||||||||
| 1155 | )
| 0-71 | ||||||||||||||||||||||||
| 1156 | filename
| 0-71 | ||||||||||||||||||||||||
| 1157 | )
| 0-71 | ||||||||||||||||||||||||
| 1158 | '\n'
| 0-71 | ||||||||||||||||||||||||
| 1159 | ) == '\0'
| 0-71 | ||||||||||||||||||||||||
| 1160 | filename
| 1-70 | ||||||||||||||||||||||||
| 1161 | ,
| 1-70 | ||||||||||||||||||||||||
| 1162 | '\n'
| 1-70 | ||||||||||||||||||||||||
| 1163 | ) : __builtin_strchr (
| 1-70 | ||||||||||||||||||||||||
| 1164 | filename
| 1-70 | ||||||||||||||||||||||||
| 1165 | ,
| 1-70 | ||||||||||||||||||||||||
| 1166 | '\n'
| 1-70 | ||||||||||||||||||||||||
| 1167 | )))
| 1-70 | ||||||||||||||||||||||||
| 1168 | ; | - | ||||||||||||||||||||||||
| 1169 | - | |||||||||||||||||||||||||
| 1170 | properly_formatted_lines = | - | ||||||||||||||||||||||||
| 1171 | 1 | - | ||||||||||||||||||||||||
| 1172 | ; | - | ||||||||||||||||||||||||
| 1173 | - | |||||||||||||||||||||||||
| 1174 | ok = digest_file (filename, &binary, bin_buffer, &missing); | - | ||||||||||||||||||||||||
| 1175 | - | |||||||||||||||||||||||||
| 1176 | if (!ok
| 2-74 | ||||||||||||||||||||||||
| 1177 | { | - | ||||||||||||||||||||||||
| 1178 | ++n_open_or_read_failures; | - | ||||||||||||||||||||||||
| 1179 | if (!status_only
| 0-2 | ||||||||||||||||||||||||
| 1180 | { | - | ||||||||||||||||||||||||
| 1181 | if (needs_escape
| 0-2 | ||||||||||||||||||||||||
| 1182 | putchar_unlocked ('\\'); never executed: putchar_unlocked ('\\'); | 0 | ||||||||||||||||||||||||
| 1183 | print_filename (filename, needs_escape); | - | ||||||||||||||||||||||||
| 1184 | printf (": %s\n", | - | ||||||||||||||||||||||||
| 1185 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1186 | "FAILED open or read" | - | ||||||||||||||||||||||||
| 1187 | , 5) | - | ||||||||||||||||||||||||
| 1188 | ); | - | ||||||||||||||||||||||||
| 1189 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||
| 1190 | } executed 2 times by 1 test: end of blockExecuted by:
| 2 | ||||||||||||||||||||||||
| 1191 | else if (ignore_missing
| 4-66 | ||||||||||||||||||||||||
| 1192 | { | - | ||||||||||||||||||||||||
| 1193 | - | |||||||||||||||||||||||||
| 1194 | ; | - | ||||||||||||||||||||||||
| 1195 | } executed 4 times by 1 test: end of blockExecuted by:
| 4 | ||||||||||||||||||||||||
| 1196 | else | - | ||||||||||||||||||||||||
| 1197 | { | - | ||||||||||||||||||||||||
| 1198 | size_t digest_bin_bytes = digest_hex_bytes / 2; | - | ||||||||||||||||||||||||
| 1199 | size_t cnt; | - | ||||||||||||||||||||||||
| 1200 | - | |||||||||||||||||||||||||
| 1201 | - | |||||||||||||||||||||||||
| 1202 | - | |||||||||||||||||||||||||
| 1203 | for (cnt = 0; cnt < digest_bin_bytes
| 60-1554 | ||||||||||||||||||||||||
| 1204 | { | - | ||||||||||||||||||||||||
| 1205 | if ( | - | ||||||||||||||||||||||||
| 1206 | (
| 0-1554 | ||||||||||||||||||||||||
| 1207 | hex_digest[2 * cnt]
| 0-1554 | ||||||||||||||||||||||||
| 1208 | ) > 1
| 0-1554 | ||||||||||||||||||||||||
| 1209 | hex_digest[2 * cnt]
| 0-1544 | ||||||||||||||||||||||||
| 1210 | )
| 0-1544 | ||||||||||||||||||||||||
| 1211 | hex_digest[2 * cnt]
| 10-1544 | ||||||||||||||||||||||||
| 1212 | ); __res = __c < -128
never executed: else __res = tolower (end of blocknever executed: __res = tolower ( hex_digest[2 * cnt] );
| 0-1544 | ||||||||||||||||||||||||
| 1213 | hex_digest[2 * cnt]
never executed: __res = tolower ( hex_digest[2 * cnt] ); | 0-1544 | ||||||||||||||||||||||||
| 1214 | );
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 | ||||||||||||||||||||||||
| 1215 | hex_digest[2 * cnt]
executed 1554 times by 3 tests: __res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt] )];Executed by:
| 10-1554 | ||||||||||||||||||||||||
| 1216 | )]; __res; }))
| 10-1554 | ||||||||||||||||||||||||
| 1217 |
| 10-1544 | ||||||||||||||||||||||||
| 1218 | != bin2hex[bin_buffer[cnt] >> 4]
| 10-1544 | ||||||||||||||||||||||||
| 1219 | || (
| 0-1544 | ||||||||||||||||||||||||
| 1220 | (__extension__ ({ int __res; if (sizeof (
| 0-1544 | ||||||||||||||||||||||||
| 1221 | hex_digest[2 * cnt + 1]
| 0-1544 | ||||||||||||||||||||||||
| 1222 | ) > 1) { if (__builtin_constant_p (
| 0-1544 | ||||||||||||||||||||||||
| 1223 | hex_digest[2 * cnt + 1]
| 0-1544 | ||||||||||||||||||||||||
| 1224 | )
| 0-1544 | ||||||||||||||||||||||||
| 1225 | hex_digest[2 * cnt + 1]
| 0-1544 | ||||||||||||||||||||||||
| 1226 | ); __res = __c < -128
never executed: else __res = tolower (end of blocknever executed: __res = tolower ( hex_digest[2 * cnt + 1] );
| 0-1544 | ||||||||||||||||||||||||
| 1227 | hex_digest[2 * cnt + 1]
never executed: __res = tolower ( hex_digest[2 * cnt + 1] ); | 0-1544 | ||||||||||||||||||||||||
| 1228 | );
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 | ||||||||||||||||||||||||
| 1229 | 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 | ||||||||||||||||||||||||
| 1230 | )];
executed 1544 times by 3 tests: __res; }))__res = (*__ctype_tolower_loc ())[(int) ( hex_digest[2 * cnt + 1] )];Executed by:
| 0-1544 | ||||||||||||||||||||||||
| 1231 |
| 0-1544 | ||||||||||||||||||||||||
| 1232 | != (bin2hex[bin_buffer[cnt] & 0xf]))
| 0-1544 | ||||||||||||||||||||||||
| 1233 | break; executed 10 times by 2 tests: break;Executed by:
| 10 | ||||||||||||||||||||||||
| 1234 | } executed 1544 times by 3 tests: end of blockExecuted by:
| 1544 | ||||||||||||||||||||||||
| 1235 | if (cnt != digest_bin_bytes
| 10-60 | ||||||||||||||||||||||||
| 1236 | ++ 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 | ||||||||||||||||||||||||
| 1237 | else | - | ||||||||||||||||||||||||
| 1238 | matched_checksums = executed 60 times by 3 tests: matched_checksums = 1 ;Executed by:
| 60 | ||||||||||||||||||||||||
| 1239 | 1 executed 60 times by 3 tests: matched_checksums = 1 ;Executed by:
| 60 | ||||||||||||||||||||||||
| 1240 | ; executed 60 times by 3 tests: matched_checksums = 1 ;Executed by:
| 60 | ||||||||||||||||||||||||
| 1241 | - | |||||||||||||||||||||||||
| 1242 | if (!status_only
| 5-65 | ||||||||||||||||||||||||
| 1243 | { | - | ||||||||||||||||||||||||
| 1244 | if (cnt != digest_bin_bytes
| 2-60 | ||||||||||||||||||||||||
| 1245 | { | - | ||||||||||||||||||||||||
| 1246 | if (needs_escape
| 1-62 | ||||||||||||||||||||||||
| 1247 | putchar_unlocked ('\\'); executed 1 time by 1 test: putchar_unlocked ('\\');Executed by:
| 1 | ||||||||||||||||||||||||
| 1248 | print_filename (filename, needs_escape); | - | ||||||||||||||||||||||||
| 1249 | } executed 63 times by 3 tests: end of blockExecuted by:
| 63 | ||||||||||||||||||||||||
| 1250 | - | |||||||||||||||||||||||||
| 1251 | if (cnt != digest_bin_bytes
| 5-60 | ||||||||||||||||||||||||
| 1252 | printf (": %s\n", executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );Executed by:
| 5 | ||||||||||||||||||||||||
| 1253 | dcgettext (((void *)0), executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );Executed by:
| 5 | ||||||||||||||||||||||||
| 1254 | "FAILED" executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );Executed by:
| 5 | ||||||||||||||||||||||||
| 1255 | , 5) executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );Executed by:
| 5 | ||||||||||||||||||||||||
| 1256 | ); executed 5 times by 1 test: printf (": %s\n", dcgettext (((void *)0), "FAILED" , 5) );Executed by:
| 5 | ||||||||||||||||||||||||
| 1257 | else if (!quiet
| 2-58 | ||||||||||||||||||||||||
| 1258 | printf (": %s\n", executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );Executed by:
| 58 | ||||||||||||||||||||||||
| 1259 | dcgettext (((void *)0), executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );Executed by:
| 58 | ||||||||||||||||||||||||
| 1260 | "OK" executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );Executed by:
| 58 | ||||||||||||||||||||||||
| 1261 | , 5) executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );Executed by:
| 58 | ||||||||||||||||||||||||
| 1262 | ); executed 58 times by 3 tests: printf (": %s\n", dcgettext (((void *)0), "OK" , 5) );Executed by:
| 58 | ||||||||||||||||||||||||
| 1263 | } executed 65 times by 3 tests: end of blockExecuted by:
| 65 | ||||||||||||||||||||||||
| 1264 | } executed 70 times by 3 tests: end of blockExecuted by:
| 70 | ||||||||||||||||||||||||
| 1265 | } | - | ||||||||||||||||||||||||
| 1266 | } | - | ||||||||||||||||||||||||
| 1267 | while (!feof_unlocked (checkfile_stream)
| 0-93 | ||||||||||||||||||||||||
| 1268 | - | |||||||||||||||||||||||||
| 1269 | free (line); | - | ||||||||||||||||||||||||
| 1270 | - | |||||||||||||||||||||||||
| 1271 | if (ferror_unlocked (checkfile_stream)
| 0-41 | ||||||||||||||||||||||||
| 1272 | { | - | ||||||||||||||||||||||||
| 1273 | error (0, 0, | - | ||||||||||||||||||||||||
| 1274 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1275 | "%s: read error" | - | ||||||||||||||||||||||||
| 1276 | , 5) | - | ||||||||||||||||||||||||
| 1277 | , quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); | - | ||||||||||||||||||||||||
| 1278 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1279 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1280 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1281 | } | - | ||||||||||||||||||||||||
| 1282 | - | |||||||||||||||||||||||||
| 1283 | if (!is_stdin
| 1-40 | ||||||||||||||||||||||||
| 1284 | rpl_fclose
| 0-40 | ||||||||||||||||||||||||
| 1285 | (checkfile_stream) != 0
| 0-40 | ||||||||||||||||||||||||
| 1286 | { | - | ||||||||||||||||||||||||
| 1287 | error (0, | - | ||||||||||||||||||||||||
| 1288 | (*__errno_location ()) | - | ||||||||||||||||||||||||
| 1289 | , "%s", quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name)); | - | ||||||||||||||||||||||||
| 1290 | return never executed: return 0 ;never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1291 | 0 never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1292 | ; never executed: return 0 ; | 0 | ||||||||||||||||||||||||
| 1293 | } | - | ||||||||||||||||||||||||
| 1294 | - | |||||||||||||||||||||||||
| 1295 | if (! properly_formatted_lines
| 8-33 | ||||||||||||||||||||||||
| 1296 | { | - | ||||||||||||||||||||||||
| 1297 | - | |||||||||||||||||||||||||
| 1298 | error (0, 0, | - | ||||||||||||||||||||||||
| 1299 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1300 | "%s: no properly formatted %s checksum lines found" | - | ||||||||||||||||||||||||
| 1301 | , 5) | - | ||||||||||||||||||||||||
| 1302 | , | - | ||||||||||||||||||||||||
| 1303 | quotearg_n_style_colon (0, shell_escape_quoting_style, checkfile_name), "MD5"); | - | ||||||||||||||||||||||||
| 1304 | } executed 8 times by 3 tests: end of blockExecuted by:
| 8 | ||||||||||||||||||||||||
| 1305 | else | - | ||||||||||||||||||||||||
| 1306 | { | - | ||||||||||||||||||||||||
| 1307 | if (!status_only
| 5-28 | ||||||||||||||||||||||||
| 1308 | { | - | ||||||||||||||||||||||||
| 1309 | if (n_misformatted_lines != 0
| 6-22 | ||||||||||||||||||||||||
| 1310 | 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 | ||||||||||||||||||||||||
| 1311 | ( 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 | ||||||||||||||||||||||||
| 1312 | 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 | ||||||||||||||||||||||||
| 1313 | "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 | ||||||||||||||||||||||||
| 1314 | "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 | ||||||||||||||||||||||||
| 1315 | " 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 | ||||||||||||||||||||||||
| 1316 | , 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 | ||||||||||||||||||||||||
| 1317 | "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 | ||||||||||||||||||||||||
| 1318 | "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 | ||||||||||||||||||||||||
| 1319 | " 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 | ||||||||||||||||||||||||
| 1320 | , 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 | ||||||||||||||||||||||||
| 1321 | 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 | ||||||||||||||||||||||||
| 1322 | , 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 | ||||||||||||||||||||||||
| 1323 | 6 | |||||||||||||||||||||||||
| 1324 | 6 | |||||||||||||||||||||||||
| 1325 | 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 | ||||||||||||||||||||||||
| 1326 | ), 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 | ||||||||||||||||||||||||
| 1327 | 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 | ||||||||||||||||||||||||
| 1328 | - | |||||||||||||||||||||||||
| 1329 | if (n_open_or_read_failures != 0
| 1-27 | ||||||||||||||||||||||||
| 1330 | 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 | ||||||||||||||||||||||||
| 1331 | ( 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 | ||||||||||||||||||||||||
| 1332 | 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 | ||||||||||||||||||||||||
| 1333 | "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 | ||||||||||||||||||||||||
| 1334 | "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 | ||||||||||||||||||||||||
| 1335 | " 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 | ||||||||||||||||||||||||
| 1336 | , 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 | ||||||||||||||||||||||||
| 1337 | "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 | ||||||||||||||||||||||||
| 1338 | "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 | ||||||||||||||||||||||||
| 1339 | " 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 | ||||||||||||||||||||||||
| 1340 | , 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 | ||||||||||||||||||||||||
| 1341 | 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 | ||||||||||||||||||||||||
| 1342 | , 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 | ||||||||||||||||||||||||
| 1343 | 1 | |||||||||||||||||||||||||
| 1344 | 1 | |||||||||||||||||||||||||
| 1345 | 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 | ||||||||||||||||||||||||
| 1346 | ), 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 | ||||||||||||||||||||||||
| 1347 | 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 | ||||||||||||||||||||||||
| 1348 | - | |||||||||||||||||||||||||
| 1349 | if (n_mismatched_checksums != 0
| 3-25 | ||||||||||||||||||||||||
| 1350 | 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 | ||||||||||||||||||||||||
| 1351 | ( 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 | ||||||||||||||||||||||||
| 1352 | 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 | ||||||||||||||||||||||||
| 1353 | "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 | ||||||||||||||||||||||||
| 1354 | "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 | ||||||||||||||||||||||||
| 1355 | " 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 | ||||||||||||||||||||||||
| 1356 | , 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 | ||||||||||||||||||||||||
| 1357 | "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 | ||||||||||||||||||||||||
| 1358 | "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 | ||||||||||||||||||||||||
| 1359 | " 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 | ||||||||||||||||||||||||
| 1360 | , 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 | ||||||||||||||||||||||||
| 1361 | 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 | ||||||||||||||||||||||||
| 1362 | , 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 | ||||||||||||||||||||||||
| 1363 | 3 | |||||||||||||||||||||||||
| 1364 | 3 | |||||||||||||||||||||||||
| 1365 | 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 | ||||||||||||||||||||||||
| 1366 | ), 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 | ||||||||||||||||||||||||
| 1367 | 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 | ||||||||||||||||||||||||
| 1368 | - | |||||||||||||||||||||||||
| 1369 | if (ignore_missing
| 1-23 | ||||||||||||||||||||||||
| 1370 | 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 | ||||||||||||||||||||||||
| 1371 | 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 | ||||||||||||||||||||||||
| 1372 | "%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 | ||||||||||||||||||||||||
| 1373 | , 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 | ||||||||||||||||||||||||
| 1374 | , 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 | ||||||||||||||||||||||||
| 1375 | 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 | ||||||||||||||||||||||||
| 1376 | } executed 28 times by 3 tests: end of blockExecuted by:
| 28 | ||||||||||||||||||||||||
| 1377 | } executed 33 times by 3 tests: end of blockExecuted by:
| 33 | ||||||||||||||||||||||||
| 1378 | - | |||||||||||||||||||||||||
| 1379 | 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 | ||||||||||||||||||||||||
| 1380 | && 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 | ||||||||||||||||||||||||
| 1381 | && 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 | ||||||||||||||||||||||||
| 1382 | && 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 | ||||||||||||||||||||||||
| 1383 | && (!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 | ||||||||||||||||||||||||
| 1384 | } | - | ||||||||||||||||||||||||
| 1385 | - | |||||||||||||||||||||||||
| 1386 | int | - | ||||||||||||||||||||||||
| 1387 | main (int argc, char **argv) | - | ||||||||||||||||||||||||
| 1388 | { | - | ||||||||||||||||||||||||
| 1389 | unsigned char bin_buffer_unaligned[(128 / 8) + 4]; | - | ||||||||||||||||||||||||
| 1390 | - | |||||||||||||||||||||||||
| 1391 | unsigned char *bin_buffer = ptr_align (bin_buffer_unaligned, 4); | - | ||||||||||||||||||||||||
| 1392 | - | |||||||||||||||||||||||||
| 1393 | _Bool | - | ||||||||||||||||||||||||
| 1394 | do_check = | - | ||||||||||||||||||||||||
| 1395 | 0 | - | ||||||||||||||||||||||||
| 1396 | ; | - | ||||||||||||||||||||||||
| 1397 | int opt; | - | ||||||||||||||||||||||||
| 1398 | - | |||||||||||||||||||||||||
| 1399 | _Bool | - | ||||||||||||||||||||||||
| 1400 | ok = | - | ||||||||||||||||||||||||
| 1401 | 1 | - | ||||||||||||||||||||||||
| 1402 | ; | - | ||||||||||||||||||||||||
| 1403 | int binary = -1; | - | ||||||||||||||||||||||||
| 1404 | - | |||||||||||||||||||||||||
| 1405 | _Bool | - | ||||||||||||||||||||||||
| 1406 | prefix_tag = | - | ||||||||||||||||||||||||
| 1407 | 0 | - | ||||||||||||||||||||||||
| 1408 | ; | - | ||||||||||||||||||||||||
| 1409 | - | |||||||||||||||||||||||||
| 1410 | - | |||||||||||||||||||||||||
| 1411 | ; | - | ||||||||||||||||||||||||
| 1412 | set_program_name (argv[0]); | - | ||||||||||||||||||||||||
| 1413 | setlocale ( | - | ||||||||||||||||||||||||
| 1414 | 6 | - | ||||||||||||||||||||||||
| 1415 | , ""); | - | ||||||||||||||||||||||||
| 1416 | bindtextdomain ("coreutils", "/usr/local/share/locale"); | - | ||||||||||||||||||||||||
| 1417 | textdomain ("coreutils"); | - | ||||||||||||||||||||||||
| 1418 | - | |||||||||||||||||||||||||
| 1419 | atexit (close_stdout); | - | ||||||||||||||||||||||||
| 1420 | - | |||||||||||||||||||||||||
| 1421 | - | |||||||||||||||||||||||||
| 1422 | - | |||||||||||||||||||||||||
| 1423 | setvbuf ( | - | ||||||||||||||||||||||||
| 1424 | stdout | - | ||||||||||||||||||||||||
| 1425 | , | - | ||||||||||||||||||||||||
| 1426 | ((void *)0) | - | ||||||||||||||||||||||||
| 1427 | , | - | ||||||||||||||||||||||||
| 1428 | 1 | - | ||||||||||||||||||||||||
| 1429 | , 0); | - | ||||||||||||||||||||||||
| 1430 | - | |||||||||||||||||||||||||
| 1431 | - | |||||||||||||||||||||||||
| 1432 | - | |||||||||||||||||||||||||
| 1433 | - | |||||||||||||||||||||||||
| 1434 | - | |||||||||||||||||||||||||
| 1435 | const char* short_opts = "bctw"; | - | ||||||||||||||||||||||||
| 1436 | - | |||||||||||||||||||||||||
| 1437 | - | |||||||||||||||||||||||||
| 1438 | while ((
| 357-634 | ||||||||||||||||||||||||
| 1439 | ((void *)0)
| 357-634 | ||||||||||||||||||||||||
| 1440 | )) != -1
| 357-634 | ||||||||||||||||||||||||
| 1441 | switch (opt) | - | ||||||||||||||||||||||||
| 1442 | { | - | ||||||||||||||||||||||||
| 1443 | case executed 14 times by 7 tests: 'b':case 'b':Executed by:
executed 14 times by 7 tests: case 'b':Executed by:
| 14 | ||||||||||||||||||||||||
| 1444 | binary = 1; | - | ||||||||||||||||||||||||
| 1445 | break; executed 14 times by 7 tests: break;Executed by:
| 14 | ||||||||||||||||||||||||
| 1446 | case executed 56 times by 7 tests: 'c':case 'c':Executed by:
executed 56 times by 7 tests: case 'c':Executed by:
| 56 | ||||||||||||||||||||||||
| 1447 | do_check = | - | ||||||||||||||||||||||||
| 1448 | 1 | - | ||||||||||||||||||||||||
| 1449 | ; | - | ||||||||||||||||||||||||
| 1450 | break; executed 56 times by 7 tests: break;Executed by:
| 56 | ||||||||||||||||||||||||
| 1451 | 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 | ||||||||||||||||||||||||
| 1452 | status_only = | - | ||||||||||||||||||||||||
| 1453 | 1 | - | ||||||||||||||||||||||||
| 1454 | ; | - | ||||||||||||||||||||||||
| 1455 | warn = | - | ||||||||||||||||||||||||
| 1456 | 0 | - | ||||||||||||||||||||||||
| 1457 | ; | - | ||||||||||||||||||||||||
| 1458 | quiet = | - | ||||||||||||||||||||||||
| 1459 | 0 | - | ||||||||||||||||||||||||
| 1460 | ; | - | ||||||||||||||||||||||||
| 1461 | break; executed 12 times by 7 tests: break;Executed by:
| 12 | ||||||||||||||||||||||||
| 1462 | case executed 283 times by 7 tests: 't':case 't':Executed by:
executed 283 times by 7 tests: case 't':Executed by:
| 283 | ||||||||||||||||||||||||
| 1463 | binary = 0; | - | ||||||||||||||||||||||||
| 1464 | break; executed 283 times by 7 tests: break;Executed by:
| 283 | ||||||||||||||||||||||||
| 1465 | case executed 15 times by 7 tests: 'w':case 'w':Executed by:
executed 15 times by 7 tests: case 'w':Executed by:
| 15 | ||||||||||||||||||||||||
| 1466 | status_only = | - | ||||||||||||||||||||||||
| 1467 | 0 | - | ||||||||||||||||||||||||
| 1468 | ; | - | ||||||||||||||||||||||||
| 1469 | warn = | - | ||||||||||||||||||||||||
| 1470 | 1 | - | ||||||||||||||||||||||||
| 1471 | ; | - | ||||||||||||||||||||||||
| 1472 | quiet = | - | ||||||||||||||||||||||||
| 1473 | 0 | - | ||||||||||||||||||||||||
| 1474 | ; | - | ||||||||||||||||||||||||
| 1475 | break; executed 15 times by 7 tests: break;Executed by:
| 15 | ||||||||||||||||||||||||
| 1476 | 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 | ||||||||||||||||||||||||
| 1477 | ignore_missing = | - | ||||||||||||||||||||||||
| 1478 | 1 | - | ||||||||||||||||||||||||
| 1479 | ; | - | ||||||||||||||||||||||||
| 1480 | break; executed 13 times by 7 tests: break;Executed by:
| 13 | ||||||||||||||||||||||||
| 1481 | 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 | ||||||||||||||||||||||||
| 1482 | status_only = | - | ||||||||||||||||||||||||
| 1483 | 0 | - | ||||||||||||||||||||||||
| 1484 | ; | - | ||||||||||||||||||||||||
| 1485 | warn = | - | ||||||||||||||||||||||||
| 1486 | 0 | - | ||||||||||||||||||||||||
| 1487 | ; | - | ||||||||||||||||||||||||
| 1488 | quiet = | - | ||||||||||||||||||||||||
| 1489 | 1 | - | ||||||||||||||||||||||||
| 1490 | ; | - | ||||||||||||||||||||||||
| 1491 | break; executed 10 times by 7 tests: break;Executed by:
| 10 | ||||||||||||||||||||||||
| 1492 | 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 | ||||||||||||||||||||||||
| 1493 | strict = | - | ||||||||||||||||||||||||
| 1494 | 1 | - | ||||||||||||||||||||||||
| 1495 | ; | - | ||||||||||||||||||||||||
| 1496 | break; executed 20 times by 7 tests: break;Executed by:
| 20 | ||||||||||||||||||||||||
| 1497 | 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 | ||||||||||||||||||||||||
| 1498 | prefix_tag = | - | ||||||||||||||||||||||||
| 1499 | 1 | - | ||||||||||||||||||||||||
| 1500 | ; | - | ||||||||||||||||||||||||
| 1501 | binary = 1; | - | ||||||||||||||||||||||||
| 1502 | break; executed 29 times by 7 tests: break;Executed by:
| 29 | ||||||||||||||||||||||||
| 1503 | 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 | ||||||||||||||||||||||||
| 1504 | 0 | - | ||||||||||||||||||||||||
| 1505 | ); break; never executed: ;break; | 0 | ||||||||||||||||||||||||
| 1506 | 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 | ||||||||||||||||||||||||
| 1507 | stdout | - | ||||||||||||||||||||||||
| 1508 | , "md5sum", "GNU coreutils", Version, ("Ulrich Drepper"), ("Scott Miller"), ("David Madore"), (char *) | - | ||||||||||||||||||||||||
| 1509 | ((void *)0) | - | ||||||||||||||||||||||||
| 1510 | ); exit ( executed 32 times by 7 tests: exit ( 0 );Executed by:
| 32 | ||||||||||||||||||||||||
| 1511 | 0 executed 32 times by 7 tests: exit ( 0 );Executed by:
| 32 | ||||||||||||||||||||||||
| 1512 | ); executed 32 times by 7 tests: break;exit ( 0 );Executed by:
never executed: ;break; | 0-32 | ||||||||||||||||||||||||
| 1513 | default executed 21 times by 7 tests: :default:Executed by:
executed 21 times by 7 tests: default:Executed by:
| 21 | ||||||||||||||||||||||||
| 1514 | usage ( | - | ||||||||||||||||||||||||
| 1515 | 1 | - | ||||||||||||||||||||||||
| 1516 | ); | - | ||||||||||||||||||||||||
| 1517 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1518 | - | |||||||||||||||||||||||||
| 1519 | min_digest_line_length = ((128 / 4) + 1 + 1 ); | - | ||||||||||||||||||||||||
| 1520 | digest_hex_bytes = (128 / 4); | - | ||||||||||||||||||||||||
| 1521 | - | |||||||||||||||||||||||||
| 1522 | - | |||||||||||||||||||||||||
| 1523 | if (prefix_tag
| 1-335 | ||||||||||||||||||||||||
| 1524 | { | - | ||||||||||||||||||||||||
| 1525 | - | |||||||||||||||||||||||||
| 1526 | - | |||||||||||||||||||||||||
| 1527 | - | |||||||||||||||||||||||||
| 1528 | - | |||||||||||||||||||||||||
| 1529 | - | |||||||||||||||||||||||||
| 1530 | error (0, 0, | - | ||||||||||||||||||||||||
| 1531 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1532 | "--tag does not support --text mode" | - | ||||||||||||||||||||||||
| 1533 | , 5) | - | ||||||||||||||||||||||||
| 1534 | ); | - | ||||||||||||||||||||||||
| 1535 | usage ( | - | ||||||||||||||||||||||||
| 1536 | 1 | - | ||||||||||||||||||||||||
| 1537 | ); | - | ||||||||||||||||||||||||
| 1538 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1539 | - | |||||||||||||||||||||||||
| 1540 | if (prefix_tag
| 1-335 | ||||||||||||||||||||||||
| 1541 | { | - | ||||||||||||||||||||||||
| 1542 | error (0, 0, | - | ||||||||||||||||||||||||
| 1543 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1544 | "the --tag option is meaningless when " "verifying checksums" | - | ||||||||||||||||||||||||
| 1545 | , 5) | - | ||||||||||||||||||||||||
| 1546 | - | |||||||||||||||||||||||||
| 1547 | ); | - | ||||||||||||||||||||||||
| 1548 | usage ( | - | ||||||||||||||||||||||||
| 1549 | 1 | - | ||||||||||||||||||||||||
| 1550 | ); | - | ||||||||||||||||||||||||
| 1551 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1552 | - | |||||||||||||||||||||||||
| 1553 | if (0 <= binary
| 0-288 | ||||||||||||||||||||||||
| 1554 | { | - | ||||||||||||||||||||||||
| 1555 | error (0, 0, | - | ||||||||||||||||||||||||
| 1556 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1557 | "the --binary and --text options are meaningless when " "verifying checksums" | - | ||||||||||||||||||||||||
| 1558 | , 5) | - | ||||||||||||||||||||||||
| 1559 | - | |||||||||||||||||||||||||
| 1560 | ); | - | ||||||||||||||||||||||||
| 1561 | usage ( | - | ||||||||||||||||||||||||
| 1562 | 1 | - | ||||||||||||||||||||||||
| 1563 | ); | - | ||||||||||||||||||||||||
| 1564 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1565 | - | |||||||||||||||||||||||||
| 1566 | if (ignore_missing
| 1-349 | ||||||||||||||||||||||||
| 1567 | { | - | ||||||||||||||||||||||||
| 1568 | error (0, 0, | - | ||||||||||||||||||||||||
| 1569 | - | |||||||||||||||||||||||||
| 1570 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1571 | "the --ignore-missing option is meaningful only when " "verifying checksums" | - | ||||||||||||||||||||||||
| 1572 | , 5) | - | ||||||||||||||||||||||||
| 1573 | - | |||||||||||||||||||||||||
| 1574 | ); | - | ||||||||||||||||||||||||
| 1575 | usage ( | - | ||||||||||||||||||||||||
| 1576 | 1 | - | ||||||||||||||||||||||||
| 1577 | ); | - | ||||||||||||||||||||||||
| 1578 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1579 | - | |||||||||||||||||||||||||
| 1580 | if (status_only
| 0-349 | ||||||||||||||||||||||||
| 1581 | { | - | ||||||||||||||||||||||||
| 1582 | error (0, 0, | - | ||||||||||||||||||||||||
| 1583 | - | |||||||||||||||||||||||||
| 1584 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1585 | "the --status option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||
| 1586 | , 5) | - | ||||||||||||||||||||||||
| 1587 | ); | - | ||||||||||||||||||||||||
| 1588 | usage ( | - | ||||||||||||||||||||||||
| 1589 | 1 | - | ||||||||||||||||||||||||
| 1590 | ); | - | ||||||||||||||||||||||||
| 1591 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1592 | - | |||||||||||||||||||||||||
| 1593 | if (warn
| 0-353 | ||||||||||||||||||||||||
| 1594 | { | - | ||||||||||||||||||||||||
| 1595 | error (0, 0, | - | ||||||||||||||||||||||||
| 1596 | - | |||||||||||||||||||||||||
| 1597 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1598 | "the --warn option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||
| 1599 | , 5) | - | ||||||||||||||||||||||||
| 1600 | ); | - | ||||||||||||||||||||||||
| 1601 | usage ( | - | ||||||||||||||||||||||||
| 1602 | 1 | - | ||||||||||||||||||||||||
| 1603 | ); | - | ||||||||||||||||||||||||
| 1604 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1605 | - | |||||||||||||||||||||||||
| 1606 | if (quiet
| 0-351 | ||||||||||||||||||||||||
| 1607 | { | - | ||||||||||||||||||||||||
| 1608 | error (0, 0, | - | ||||||||||||||||||||||||
| 1609 | - | |||||||||||||||||||||||||
| 1610 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1611 | "the --quiet option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||
| 1612 | , 5) | - | ||||||||||||||||||||||||
| 1613 | ); | - | ||||||||||||||||||||||||
| 1614 | usage ( | - | ||||||||||||||||||||||||
| 1615 | 1 | - | ||||||||||||||||||||||||
| 1616 | ); | - | ||||||||||||||||||||||||
| 1617 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1618 | - | |||||||||||||||||||||||||
| 1619 | if (strict & !do_check
| 0-354 | ||||||||||||||||||||||||
| 1620 | { | - | ||||||||||||||||||||||||
| 1621 | error (0, 0, | - | ||||||||||||||||||||||||
| 1622 | - | |||||||||||||||||||||||||
| 1623 | dcgettext (((void *)0), | - | ||||||||||||||||||||||||
| 1624 | "the --strict option is meaningful only when verifying checksums" | - | ||||||||||||||||||||||||
| 1625 | , 5) | - | ||||||||||||||||||||||||
| 1626 | ); | - | ||||||||||||||||||||||||
| 1627 | usage ( | - | ||||||||||||||||||||||||
| 1628 | 1 | - | ||||||||||||||||||||||||
| 1629 | ); | - | ||||||||||||||||||||||||
| 1630 | } never executed: end of block | 0 | ||||||||||||||||||||||||
| 1631 | - | |||||||||||||||||||||||||
| 1632 | if (! | - | ||||||||||||||||||||||||
| 1633 | 0 | - | ||||||||||||||||||||||||
| 1634 | && binary < 0
| 67-287 | ||||||||||||||||||||||||
| 1635 | binary = 0; executed 67 times by 7 tests: binary = 0;Executed by:
| 67 | ||||||||||||||||||||||||
| 1636 | - | |||||||||||||||||||||||||
| 1637 | char **operand_lim = argv + argc; | - | ||||||||||||||||||||||||
| 1638 | if (optind == argc
| 14-340 | ||||||||||||||||||||||||
| 1639 | * 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 | ||||||||||||||||||||||||
| 1640 | - | |||||||||||||||||||||||||
| 1641 | for (char **operandp = argv + optind; operandp < operand_lim
| 354-1851 | ||||||||||||||||||||||||
| 1642 | { | - | ||||||||||||||||||||||||
| 1643 | char *file = *operandp; | - | ||||||||||||||||||||||||
| 1644 | - | |||||||||||||||||||||||||
| 1645 | if (do_check
| 41-1810 | ||||||||||||||||||||||||
| 1646 | ok &= digest_check (file); executed 41 times by 3 tests: ok &= digest_check (file);Executed by:
| 41 | ||||||||||||||||||||||||
| 1647 | else | - | ||||||||||||||||||||||||
| 1648 | { | - | ||||||||||||||||||||||||
| 1649 | int file_is_binary = binary; | - | ||||||||||||||||||||||||
| 1650 | - | |||||||||||||||||||||||||
| 1651 | _Bool | - | ||||||||||||||||||||||||
| 1652 | missing; | - | ||||||||||||||||||||||||
| 1653 | - | |||||||||||||||||||||||||
| 1654 | if (! digest_file (file, &file_is_binary, bin_buffer, &missing)
| 0-1810 | ||||||||||||||||||||||||
| 1655 | ok = never executed: ok = 0 ; | 0 | ||||||||||||||||||||||||
| 1656 | 0 never executed: ok = 0 ; | 0 | ||||||||||||||||||||||||
| 1657 | ; never executed: ok = 0 ; | 0 | ||||||||||||||||||||||||
| 1658 | else | - | ||||||||||||||||||||||||
| 1659 | { | - | ||||||||||||||||||||||||
| 1660 | - | |||||||||||||||||||||||||
| 1661 | - | |||||||||||||||||||||||||
| 1662 | - | |||||||||||||||||||||||||
| 1663 | - | |||||||||||||||||||||||||
| 1664 | - | |||||||||||||||||||||||||
| 1665 | - | |||||||||||||||||||||||||
| 1666 | - | |||||||||||||||||||||||||
| 1667 | - | |||||||||||||||||||||||||
| 1668 | _Bool | - | ||||||||||||||||||||||||
| 1669 | needs_escape = | - | ||||||||||||||||||||||||
| 1670 | (
| 0-1810 | ||||||||||||||||||||||||
| 1671 | '\\'
| 0-1810 | ||||||||||||||||||||||||
| 1672 | )
| 0-1810 | ||||||||||||||||||||||||
| 1673 | file
| 0-1810 | ||||||||||||||||||||||||
| 1674 | )
| 0-1810 | ||||||||||||||||||||||||
| 1675 | '\\'
| 0-1810 | ||||||||||||||||||||||||
| 1676 | ) == '\0'
| 0-1810 | ||||||||||||||||||||||||
| 1677 | file
| 5-1805 | ||||||||||||||||||||||||
| 1678 | ,
| 5-1805 | ||||||||||||||||||||||||
| 1679 | '\\'
| 5-1805 | ||||||||||||||||||||||||
| 1680 | ) : __builtin_strchr (
| 5-1805 | ||||||||||||||||||||||||
| 1681 | file
| 5-1805 | ||||||||||||||||||||||||
| 1682 | ,
| 5-1805 | ||||||||||||||||||||||||
| 1683 | '\\'
| 5-1805 | ||||||||||||||||||||||||
| 1684 | )))
| 5-1805 | ||||||||||||||||||||||||
| 1685 | || | - | ||||||||||||||||||||||||
| 1686 | (
| 0-1805 | ||||||||||||||||||||||||
| 1687 | '\n'
| 0-1805 | ||||||||||||||||||||||||
| 1688 | )
| 0-1805 | ||||||||||||||||||||||||
| 1689 | file
| 0-1805 | ||||||||||||||||||||||||
| 1690 | )
| 0-1805 | ||||||||||||||||||||||||
| 1691 | '\n'
| 0-1805 | ||||||||||||||||||||||||
| 1692 | ) == '\0'
| 0-1805 | ||||||||||||||||||||||||
| 1693 | file
| 4-1801 | ||||||||||||||||||||||||
| 1694 | ,
| 4-1801 | ||||||||||||||||||||||||
| 1695 | '\n'
| 4-1801 | ||||||||||||||||||||||||
| 1696 | ) : __builtin_strchr (
| 4-1801 | ||||||||||||||||||||||||
| 1697 | file
| 4-1801 | ||||||||||||||||||||||||
| 1698 | ,
| 4-1801 | ||||||||||||||||||||||||
| 1699 | '\n'
| 4-1801 | ||||||||||||||||||||||||
| 1700 | )))
| 4-1801 | ||||||||||||||||||||||||
| 1701 | ; | - | ||||||||||||||||||||||||
| 1702 | - | |||||||||||||||||||||||||
| 1703 | if (prefix_tag
| 20-1790 | ||||||||||||||||||||||||
| 1704 | { | - | ||||||||||||||||||||||||
| 1705 | if (needs_escape
| 4-16 | ||||||||||||||||||||||||
| 1706 | putchar_unlocked ('\\'); executed 4 times by 1 test: putchar_unlocked ('\\');Executed by:
| 4 | ||||||||||||||||||||||||
| 1707 | - | |||||||||||||||||||||||||
| 1708 | - | |||||||||||||||||||||||||
| 1709 | - | |||||||||||||||||||||||||
| 1710 | - | |||||||||||||||||||||||||
| 1711 | - | |||||||||||||||||||||||||
| 1712 | - | |||||||||||||||||||||||||
| 1713 | fputs_unlocked ("MD5", | - | ||||||||||||||||||||||||
| 1714 | stdout | - | ||||||||||||||||||||||||
| 1715 | ); | - | ||||||||||||||||||||||||
| 1716 | - | |||||||||||||||||||||||||
| 1717 | fputs_unlocked (" (", | - | ||||||||||||||||||||||||
| 1718 | stdout | - | ||||||||||||||||||||||||
| 1719 | ); | - | ||||||||||||||||||||||||
| 1720 | print_filename (file, needs_escape); | - | ||||||||||||||||||||||||
| 1721 | fputs_unlocked (") = ", | - | ||||||||||||||||||||||||
| 1722 | stdout | - | ||||||||||||||||||||||||
| 1723 | ); | - | ||||||||||||||||||||||||
| 1724 | } executed 20 times by 2 tests: end of blockExecuted by:
| 20 | ||||||||||||||||||||||||
| 1725 | - | |||||||||||||||||||||||||
| 1726 | - | |||||||||||||||||||||||||
| 1727 | - | |||||||||||||||||||||||||
| 1728 | if (!prefix_tag
| 5-1790 | ||||||||||||||||||||||||
| 1729 | putchar_unlocked ('\\'); executed 5 times by 2 tests: putchar_unlocked ('\\');Executed by:
| 5 | ||||||||||||||||||||||||
| 1730 | - | |||||||||||||||||||||||||
| 1731 | for (size_t i = 0; i < (digest_hex_bytes / 2)
| 1810-30992 | ||||||||||||||||||||||||
| 1732 | printf ("%02x", bin_buffer[i]); executed 30992 times by 7 tests: printf ("%02x", bin_buffer[i]);Executed by:
| 30992 | ||||||||||||||||||||||||
| 1733 | - | |||||||||||||||||||||||||
| 1734 | if (!prefix_tag
| 20-1790 | ||||||||||||||||||||||||
| 1735 | { | - | ||||||||||||||||||||||||
| 1736 | putchar_unlocked (' '); | - | ||||||||||||||||||||||||
| 1737 | - | |||||||||||||||||||||||||
| 1738 | putchar_unlocked (file_is_binary ? '*' : ' '); | - | ||||||||||||||||||||||||
| 1739 | - | |||||||||||||||||||||||||
| 1740 | print_filename (file, needs_escape); | - | ||||||||||||||||||||||||
| 1741 | } executed 1790 times by 7 tests: end of blockExecuted by:
| 1790 | ||||||||||||||||||||||||
| 1742 | - | |||||||||||||||||||||||||
| 1743 | putchar_unlocked ('\n'); | - | ||||||||||||||||||||||||
| 1744 | } executed 1810 times by 7 tests: end of blockExecuted by:
| 1810 | ||||||||||||||||||||||||
| 1745 | } | - | ||||||||||||||||||||||||
| 1746 | } | - | ||||||||||||||||||||||||
| 1747 | - | |||||||||||||||||||||||||
| 1748 | if (have_read_stdin
| 14-340 | ||||||||||||||||||||||||
| 1749 | rpl_fclose
| 0-14 | ||||||||||||||||||||||||
| 1750 | (
| 0-14 | ||||||||||||||||||||||||
| 1751 | stdin
| 0-14 | ||||||||||||||||||||||||
| 1752 | ) ==
| 0-14 | ||||||||||||||||||||||||
| 1753 | (-1)
| 0-14 | ||||||||||||||||||||||||
| 1754 | ) | - | ||||||||||||||||||||||||
| 1755 | (( 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 | ||||||||||||||||||||||||
| 1756 | 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 | ||||||||||||||||||||||||
| 1757 | , "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 | ||||||||||||||||||||||||
| 1758 | 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 | ||||||||||||||||||||||||
| 1759 | , 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 | ||||||||||||||||||||||||
| 1760 | (*__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 | ||||||||||||||||||||||||
| 1761 | , 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 | ||||||||||||||||||||||||
| 1762 | 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 | ||||||||||||||||||||||||
| 1763 | "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 | ||||||||||||||||||||||||
| 1764 | , 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 | ||||||||||||||||||||||||
| 1765 | ), (( 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 | ||||||||||||||||||||||||
| 1766 | 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 | ||||||||||||||||||||||||
| 1767 | ) ? (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 | ||||||||||||||||||||||||
| 1768 | 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 | ||||||||||||||||||||||||
| 1769 | , 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 | ||||||||||||||||||||||||
| 1770 | (*__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 | ||||||||||||||||||||||||
| 1771 | , 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 | ||||||||||||||||||||||||
| 1772 | 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 | ||||||||||||||||||||||||
| 1773 | "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 | ||||||||||||||||||||||||
| 1774 | , 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 | ||||||||||||||||||||||||
| 1775 | ), (( 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 | ||||||||||||||||||||||||
| 1776 | 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 | ||||||||||||||||||||||||
| 1777 | ) ? (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 | ||||||||||||||||||||||||
| 1778 | - | |||||||||||||||||||||||||
| 1779 | 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 | ||||||||||||||||||||||||
| 1780 | 0 executed 354 times by 7 tests: return ok ? 0 : 1 ;Executed by:
| 354 | ||||||||||||||||||||||||
| 1781 | : executed 354 times by 7 tests: return ok ? 0 : 1 ;Executed by:
| 354 | ||||||||||||||||||||||||
| 1782 | 1 executed 354 times by 7 tests: return ok ? 0 : 1 ;Executed by:
| 354 | ||||||||||||||||||||||||
| 1783 | ; executed 354 times by 7 tests: return ok ? 0 : 1 ;Executed by:
| 354 | ||||||||||||||||||||||||
| 1784 | } | - | ||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |