OpenCoverage

match.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/openssh/src/match.c
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10-
11-
12-
13int-
14match_pattern(const char *s, const char *pattern)-
15{-
16 for (;;) {-
17-
18 if (!*pattern
!*patternDescription
TRUEevaluated 162 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 16225 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
)
162-16225
19 return
executed 162 times by 2 tests: return !*s;
Executed by:
  • test_hostkeys
  • test_match
!*s;
executed 162 times by 2 tests: return !*s;
Executed by:
  • test_hostkeys
  • test_match
162
20-
21 if (*
*pattern == '*'Description
TRUEevaluated 250 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 15975 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
pattern == '*'
*pattern == '*'Description
TRUEevaluated 250 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 15975 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
) {
250-15975
22-
23 pattern++;-
24-
25-
26 if (!*pattern
!*patternDescription
TRUEevaluated 117 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 133 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
)
117-133
27 return
executed 117 times by 3 tests: return 1;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
1;
executed 117 times by 3 tests: return 1;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
117
28-
29-
30 if (*
*pattern != '?'Description
TRUEevaluated 133 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEnever evaluated
pattern != '?'
*pattern != '?'Description
TRUEevaluated 133 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEnever evaluated
&& *
*pattern != '*'Description
TRUEevaluated 132 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 1 time by 1 test
Evaluated by:
  • test_match
pattern != '*'
*pattern != '*'Description
TRUEevaluated 132 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 1 time by 1 test
Evaluated by:
  • test_match
) {
0-133
31-
32-
33-
34-
35-
36 for (; *
*sDescription
TRUEevaluated 1664 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 91 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
s
*sDescription
TRUEevaluated 1664 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 91 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
; s++)
91-1664
37 if (*
*s == *patternDescription
TRUEevaluated 198 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 1466 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
s == *pattern
*s == *patternDescription
TRUEevaluated 198 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 1466 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
&&
198-1466
38 match_pattern(s + 1, pattern + 1)
match_pattern(..., pattern + 1)Description
TRUEevaluated 41 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 157 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
)
41-157
39 return
executed 41 times by 2 tests: return 1;
Executed by:
  • test_hostkeys
  • test_match
1;
executed 41 times by 2 tests: return 1;
Executed by:
  • test_hostkeys
  • test_match
41
40-
41 return
executed 91 times by 2 tests: return 0;
Executed by:
  • test_hostkeys
  • test_match
0;
executed 91 times by 2 tests: return 0;
Executed by:
  • test_hostkeys
  • test_match
91
42 }-
43-
44-
45-
46-
47 for (; *
*sDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • test_match
FALSEnever evaluated
s
*sDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • test_match
FALSEnever evaluated
; s++)
0-1
48 if (match_pattern(s, pattern)
match_pattern(s, pattern)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • test_match
FALSEnever evaluated
)
0-1
49 return
executed 1 time by 1 test: return 1;
Executed by:
  • test_match
1;
executed 1 time by 1 test: return 1;
Executed by:
  • test_match
1
50-
51 return
never executed: return 0;
0;
never executed: return 0;
0
52 }-
53-
54-
55-
56-
57 if (!*s
!*sDescription
TRUEevaluated 8 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 15967 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
)
8-15967
58 return
executed 8 times by 1 test: return 0;
Executed by:
  • test_match
0;
executed 8 times by 1 test: return 0;
Executed by:
  • test_match
8
59-
60-
61 if (*
*pattern != '?'Description
TRUEevaluated 15962 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 5 times by 1 test
Evaluated by:
  • test_match
pattern != '?'
*pattern != '?'Description
TRUEevaluated 15962 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 5 times by 1 test
Evaluated by:
  • test_match
&& *
*pattern != *sDescription
TRUEevaluated 2154 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 13808 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
pattern != *s
*pattern != *sDescription
TRUEevaluated 2154 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 13808 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
)
5-15962
62 return
executed 2154 times by 3 tests: return 0;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0;
executed 2154 times by 3 tests: return 0;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
2154
63-
64-
65 s++;-
66 pattern++;-
67 }
executed 13813 times by 3 tests: end of block
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
13813
68-
69}
never executed: end of block
0
70-
71-
72-
73-
74-
75-
76-
77int-
78match_pattern_list(const char *string, const char *pattern, int dolower)-
79{-
80 char sub[1024];-
81 int negated;-
82 int got_positive;-
83 u_int i, subi, len = strlen(pattern);-
84-
85 got_positive = 0;-
86 for (i = 0; i < len
i < lenDescription
TRUEevaluated 2356 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 1136 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
;) {
1136-2356
87-
88 if (pattern[i] == '!'
pattern[i] == '!'Description
TRUEevaluated 16 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 2340 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
) {
16-2340
89 negated = 1;-
90 i++;-
91 }
executed 16 times by 1 test: end of block
Executed by:
  • test_match
else
16
92 negated = 0;
executed 2340 times by 3 tests: negated = 0;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
2340
93-
94-
95-
96-
97-
98 for (subi = 0;-
99 i < len
i < lenDescription
TRUEevaluated 30155 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 1139 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
&& subi < sizeof(sub) - 1
subi < sizeof(sub) - 1Description
TRUEevaluated 30155 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEnever evaluated
&& pattern[i] != ','
pattern[i] != ','Description
TRUEevaluated 28938 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 1217 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
;
0-30155
100 subi++, i++)-
101 sub[subi] = dolower
dolowerDescription
TRUEevaluated 13500 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
FALSEevaluated 15438 times by 2 tests
Evaluated by:
  • test_kex
  • test_match
&&
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
13500-28938
102 ((*
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 13497 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
__ctype_b_loc ())[(int) ((
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 13497 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
3-28938
103 (u_char)pattern[i]
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 13497 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
3-28938
104 ))] & (unsigned short int) _ISupper)
((*__ctype_b_l...int) _ISupper)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 13497 times by 2 tests
Evaluated by:
  • test_hostkeys
  • test_match
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
3-28938
105 ?
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
28938
106
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
28938
107 (__extension__ ({ int __res; if (sizeof (
sizeof ( (u_ch...ttern[i] ) > 1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • test_match
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
108 (u_char)pattern[i]
sizeof ( (u_ch...ttern[i] ) > 1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • test_match
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
109 ) > 1
sizeof ( (u_ch...ttern[i] ) > 1Description
TRUEnever evaluated
FALSEevaluated 3 times by 1 test
Evaluated by:
  • test_match
) { if (__builtin_constant_p (
__builtin_cons...r)pattern[i] )Description
TRUEnever evaluated
FALSEnever evaluated
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
110 (u_char)pattern[i]
__builtin_cons...r)pattern[i] )Description
TRUEnever evaluated
FALSEnever evaluated
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
111 )
__builtin_cons...r)pattern[i] )Description
TRUEnever evaluated
FALSEnever evaluated
) { int __c = (
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
112 (u_char)pattern[i]
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
28938
113 ); __res = __c < -128
__c < -128Description
TRUEnever evaluated
FALSEnever evaluated
|| __c > 255
__c > 255Description
TRUEnever evaluated
FALSEnever evaluated
? __c : (*__ctype_tolower_loc ())[__c]; }
never executed: end of block
else __res = tolower (
never executed: __res = tolower ( (u_char)pattern[i] );
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
114 (u_char)pattern[i]
never executed: __res = tolower ( (u_char)pattern[i] );
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
115 );
never executed: __res = tolower ( (u_char)pattern[i] );
} else __res = (*__ctype_tolower_loc ())[(int) (
executed 3 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )];
Executed by:
  • test_match
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
0-28938
116 (u_char)pattern[i]
executed 3 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )];
Executed by:
  • test_match
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
3-28938
117 )];
executed 3 times by 1 test: __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )];
Executed by:
  • test_match
__res; }))
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
3-28938
118 : pattern[i];
executed 28938 times by 3 tests: sub[subi] = dolower && ((*__ctype_b_loc ())[(int) (( (u_char)pattern[i] ))] & (unsigned short int) _ISupper) ? (__extension__ ({ int __res; if (sizeof ( (u_char)pattern[i] ) > 1) { if (__builtin_constant_p ( (u_char)pattern[i] )) { int __c = ( (u_char)pattern[i] ); __res = __c < -128 || __c > 255 ? __c : (*__ctype_tolower_loc ())[__c]; } else __res = tolower ( (u_char)pattern[i] ); } else __res = (*__ctype_tolower_loc ())[(int) ( (u_char)pattern[i] )]; __res; })) : pattern[i];
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
28938
119-
120 if (subi >= sizeof(sub) - 1
subi >= sizeof(sub) - 1Description
TRUEnever evaluated
FALSEevaluated 2356 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
)
0-2356
121 return
never executed: return 0;
0;
never executed: return 0;
0
122-
123-
124 if (i < len
i < lenDescription
TRUEevaluated 1217 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 1139 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
&& pattern[i] == ','
pattern[i] == ','Description
TRUEevaluated 1217 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEnever evaluated
)
0-1217
125 i++;
executed 1217 times by 3 tests: i++;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
1217
126-
127-
128 sub[subi] = '\0';-
129-
130-
131 if (match_pattern(string, sub)
match_pattern(string, sub)Description
TRUEevaluated 264 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
FALSEevaluated 2092 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
) {
264-2092
132 if (negated
negatedDescription
TRUEevaluated 12 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 252 times by 3 tests
Evaluated by:
  • test_hostkeys
  • test_kex
  • test_match
)
12-252
133 return
executed 12 times by 1 test: return -1;
Executed by:
  • test_match
-1;
executed 12 times by 1 test: return -1;
Executed by:
  • test_match
12
134 else-
135 got_positive = 1;
executed 252 times by 3 tests: got_positive = 1;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
252
136 }-
137 }
executed 2344 times by 3 tests: end of block
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
2344
138-
139-
140-
141-
142-
143 return
executed 1136 times by 3 tests: return got_positive;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
got_positive;
executed 1136 times by 3 tests: return got_positive;
Executed by:
  • test_hostkeys
  • test_kex
  • test_match
1136
144}-
145-
146-
147-
148-
149-
150-
151-
152int-
153match_hostname(const char *host, const char *pattern)-
154{-
155 char *hostcopy = xstrdup(host);-
156 int r;-
157-
158 lowercase(hostcopy);-
159 r = match_pattern_list(hostcopy, pattern, 1);-
160 free(hostcopy);-
161 return
executed 520 times by 1 test: return r;
Executed by:
  • test_hostkeys
r;
executed 520 times by 1 test: return r;
Executed by:
  • test_hostkeys
520
162}-
163-
164-
165-
166-
167-
168-
169int-
170match_host_and_ip(const char *host, const char *ipaddr,-
171 const char *patterns)-
172{-
173 int mhost, mip;-
174-
175 if ((
(mip = addr_ma...tterns)) == -2Description
TRUEnever evaluated
FALSEnever evaluated
mip = addr_match_list(ipaddr, patterns)) == -2
(mip = addr_ma...tterns)) == -2Description
TRUEnever evaluated
FALSEnever evaluated
)
0
176 return
never executed: return -1;
-1;
never executed: return -1;
0
177 else if (host ==
host == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
178 ((void *)0)
host == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
179 || ipaddr ==
ipaddr == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
180 ((void *)0)
ipaddr == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
181 || mip == -1
mip == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
182 return
never executed: return 0;
0;
never executed: return 0;
0
183-
184-
185 if ((
(mhost = match...tterns)) == -1Description
TRUEnever evaluated
FALSEnever evaluated
mhost = match_hostname(host, patterns)) == -1
(mhost = match...tterns)) == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
186 return
never executed: return 0;
0;
never executed: return 0;
0
187-
188 if (mhost == 0
mhost == 0Description
TRUEnever evaluated
FALSEnever evaluated
&& mip == 0
mip == 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
189 return
never executed: return 0;
0;
never executed: return 0;
0
190 return
never executed: return 1;
1;
never executed: return 1;
0
191}-
192-
193-
194-
195-
196-
197-
198int-
199match_user(const char *user, const char *host, const char *ipaddr,-
200 const char *pattern)-
201{-
202 char *p, *pat;-
203 int ret;-
204-
205-
206 if (user ==
user == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
207 ((void *)0)
user == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
208 && host ==
host == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
209 ((void *)0)
host == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
210 && ipaddr ==
ipaddr == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
211 ((void *)0)
ipaddr == ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
212 ) {-
213 if ((
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
p =
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
214 (__extension__ (__builtin_constant_p (
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
215 '@'
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
216 )
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_con..._p ( pattern )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
217 pattern
!__builtin_con..._p ( pattern )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
218 )
!__builtin_con..._p ( pattern )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
219 '@'
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
220 ) == '\0'
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
221 pattern
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
222 ,
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
223 '@'
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
224 ) : __builtin_strchr (
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
225 pattern
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
226 ,
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
227 '@'
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
228 )))
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
229 ) !=
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
230 ((void *)0)
(p = (__extens...!= ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
231 &&-
232 match_host_and_ip(
match_host_and...) , p + 1) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
233 ((void *)0)
match_host_and...) , p + 1) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
234 ,
match_host_and...) , p + 1) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
235 ((void *)0)
match_host_and...) , p + 1) < 0Description
TRUEnever evaluated
FALSEnever evaluated
0
236 , p + 1) < 0
match_host_and...) , p + 1) < 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
237 return
never executed: return -1;
-1;
never executed: return -1;
0
238 return
never executed: return 0;
0;
never executed: return 0;
0
239 }-
240-
241 if ((
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
p =
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
242 (__extension__ (__builtin_constant_p (
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
243 '@'
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
244 )
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_con..._p ( pattern )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
245 pattern
!__builtin_con..._p ( pattern )Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
246 )
!__builtin_con..._p ( pattern )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
247 '@'
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
248 ) == '\0'
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
249 pattern
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
250 ,
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
251 '@'
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
252 ) : __builtin_strchr (
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
253 pattern
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
254 ,
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
255 '@'
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
256 )))
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
257 ) ==
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
258 ((void *)0)
(p = (__extens...== ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
0
259 )-
260 return
never executed: return match_pattern(user, pattern);
match_pattern(user, pattern);
never executed: return match_pattern(user, pattern);
0
261-
262 pat = xstrdup(pattern);-
263 p = -
264 (__extension__ (__builtin_constant_p (
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
0
265 '@'
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
0
266 )
__builtin_constant_p ( '@' )Description
TRUEnever evaluated
FALSEnever evaluated
&& !__builtin_constant_p (
!__builtin_constant_p ( pat )Description
TRUEnever evaluated
FALSEnever evaluated
0
267 pat
!__builtin_constant_p ( pat )Description
TRUEnever evaluated
FALSEnever evaluated
0
268 )
!__builtin_constant_p ( pat )Description
TRUEnever evaluated
FALSEnever evaluated
&& (
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
0
269 '@'
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
0
270 ) == '\0'
( '@' ) == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) __rawmemchr (
0
271 pat-
272 , -
273 '@'-
274 ) : __builtin_strchr (-
275 pat-
276 , -
277 '@'-
278 )))-
279 ;-
280 *p++ = '\0';-
281-
282 if ((
(ret = match_p...er, pat)) == 1Description
TRUEnever evaluated
FALSEnever evaluated
ret = match_pattern(user, pat)) == 1
(ret = match_p...er, pat)) == 1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
283 ret = match_host_and_ip(host, ipaddr, p);
never executed: ret = match_host_and_ip(host, ipaddr, p);
0
284 free(pat);-
285-
286 return
never executed: return ret;
ret;
never executed: return ret;
0
287}-
288-
289-
290-
291-
292-
293-
294-
295char *-
296match_list(const char *client, const char *server, u_int *next)-
297{-
298 char *sproposals[40];-
299 char *c, *s, *p, *ret, *cp, *sp;-
300 int i, j, nproposals;-
301-
302 c = cp = xstrdup(client);-
303 s = sp = xstrdup(server);-
304-
305 for ((p = -
306 __extension__ ({ char __r0, __r1, __r2; (__builtin_constant_p (-
307 ","-
308 ) && ((size_t)(const void *)((-
309 ","-
310 ) + 1) - (size_t)(const void *)(-
311 ","-
312 ) == 1) && (__r0 = ((const char *) (-
313 ","-
314 ))[0], ((const char *) (-
315 ","-
316 ))[0] != '\0') ? ((__r1 = ((const char *) (-
317 ","-
318 ))[1], ((const char *) (-
319 ","-
320 ))[1] == '\0') ? __strsep_1c (-
321 &sp-
322 , __r0) : ((__r2 = ((const char *) (-
323 ","-
324 ))[2], __r2 == '\0') ? __strsep_2c (-
325 &sp-
326 , __r0, __r1) : (((const char *) (-
327 ","-
328 ))[3] == '\0' ? __strsep_3c (-
329 &sp-
330 , __r0, __r1, __r2) : __strsep_g (-
331 &sp-
332 , -
333 ","-
334 )))) : __strsep_g (-
335 &sp-
336 , -
337 ","-
338 )); })-
339 ), i=0; p
pDescription
TRUEevaluated 5920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 2080 times by 1 test
Evaluated by:
  • test_kex
&& *
*p != '\0'Description
TRUEevaluated 5920 times by 1 test
Evaluated by:
  • test_kex
FALSEnever evaluated
p != '\0'
*p != '\0'Description
TRUEevaluated 5920 times by 1 test
Evaluated by:
  • test_kex
FALSEnever evaluated
;
0-5920
340 (p = -
341 __extension__ ({ char __r0, __r1, __r2; (__builtin_constant_p (-
342 ","-
343 ) && ((size_t)(const void *)((-
344 ","-
345 ) + 1) - (size_t)(const void *)(-
346 ","-
347 ) == 1) && (__r0 = ((const char *) (-
348 ","-
349 ))[0], ((const char *) (-
350 ","-
351 ))[0] != '\0') ? ((__r1 = ((const char *) (-
352 ","-
353 ))[1], ((const char *) (-
354 ","-
355 ))[1] == '\0') ? __strsep_1c (-
356 &sp-
357 , __r0) : ((__r2 = ((const char *) (-
358 ","-
359 ))[2], __r2 == '\0') ? __strsep_2c (-
360 &sp-
361 , __r0, __r1) : (((const char *) (-
362 ","-
363 ))[3] == '\0' ? __strsep_3c (-
364 &sp-
365 , __r0, __r1, __r2) : __strsep_g (-
366 &sp-
367 , -
368 ","-
369 )))) : __strsep_g (-
370 &sp-
371 , -
372 ","-
373 )); })-
374 ), i++) {-
375 if (i < 40
i < 40Description
TRUEevaluated 5920 times by 1 test
Evaluated by:
  • test_kex
FALSEnever evaluated
)
0-5920
376 sproposals[i] = p;
executed 5920 times by 1 test: sproposals[i] = p;
Executed by:
  • test_kex
5920
377 else-
378 break;
never executed: break;
0
379 }-
380 nproposals = i;-
381-
382 for ((p = -
383 __extension__ ({ char __r0, __r1, __r2; (__builtin_constant_p (-
384 ","-
385 ) && ((size_t)(const void *)((-
386 ","-
387 ) + 1) - (size_t)(const void *)(-
388 ","-
389 ) == 1) && (__r0 = ((const char *) (-
390 ","-
391 ))[0], ((const char *) (-
392 ","-
393 ))[0] != '\0') ? ((__r1 = ((const char *) (-
394 ","-
395 ))[1], ((const char *) (-
396 ","-
397 ))[1] == '\0') ? __strsep_1c (-
398 &cp-
399 , __r0) : ((__r2 = ((const char *) (-
400 ","-
401 ))[2], __r2 == '\0') ? __strsep_2c (-
402 &cp-
403 , __r0, __r1) : (((const char *) (-
404 ","-
405 ))[3] == '\0' ? __strsep_3c (-
406 &cp-
407 , __r0, __r1, __r2) : __strsep_g (-
408 &cp-
409 , -
410 ","-
411 )))) : __strsep_g (-
412 &cp-
413 , -
414 ","-
415 )); })-
416 ), i=0; p
pDescription
TRUEevaluated 2080 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
&& *
*p != '\0'Description
TRUEevaluated 2080 times by 1 test
Evaluated by:
  • test_kex
FALSEnever evaluated
p != '\0'
*p != '\0'Description
TRUEevaluated 2080 times by 1 test
Evaluated by:
  • test_kex
FALSEnever evaluated
;
0-2080
417 (p = -
418 __extension__ ({ char __r0, __r1, __r2; (__builtin_constant_p (-
419 ","-
420 ) && ((size_t)(const void *)((-
421 ","-
422 ) + 1) - (size_t)(const void *)(-
423 ","-
424 ) == 1) && (__r0 = ((const char *) (-
425 ","-
426 ))[0], ((const char *) (-
427 ","-
428 ))[0] != '\0') ? ((__r1 = ((const char *) (-
429 ","-
430 ))[1], ((const char *) (-
431 ","-
432 ))[1] == '\0') ? __strsep_1c (-
433 &cp-
434 , __r0) : ((__r2 = ((const char *) (-
435 ","-
436 ))[2], __r2 == '\0') ? __strsep_2c (-
437 &cp-
438 , __r0, __r1) : (((const char *) (-
439 ","-
440 ))[3] == '\0' ? __strsep_3c (-
441 &cp-
442 , __r0, __r1, __r2) : __strsep_g (-
443 &cp-
444 , -
445 ","-
446 )))) : __strsep_g (-
447 &cp-
448 , -
449 ","-
450 )); })-
451 ), i++) {-
452 for (j = 0; j < nproposals
j < nproposalsDescription
TRUEevaluated 2080 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
; j++) {
160-2080
453 if (-
454 __extension__ ({ size_t __s1_len, __s2_len; (__builtin_constant_p (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
455 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
456 ) && __builtin_constant_p (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
457 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
458 ) && (__s1_len = __builtin_strlen (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
459 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
460 ), __s2_len = __builtin_strlen (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
461 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
462 ), (!((size_t)(const void *)((
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
463 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
464 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
465 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
466 ) == 1) || __s1_len >= 4) && (!((size_t)(const void *)((
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
467 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
468 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
469 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
470 ) == 1) || __s2_len >= 4)) ? __builtin_strcmp (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
471 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
472 ,
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
473 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
474 ) : (__builtin_constant_p (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
475 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
476 ) && ((size_t)(const void *)((
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
477 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
478 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
479 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
480 ) == 1) && (__s1_len = __builtin_strlen (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
481 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
482 ), __s1_len < 4) ? (__builtin_constant_p (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
483 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
484 ) && ((size_t)(const void *)((
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
485 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
486 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
487 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
488 ) == 1) ? __builtin_strcmp (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
489 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
490 ,
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
491 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
492 ) : (__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
493 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
494 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
495 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
496 ))[0] - __s2[0]); if (__s1_len > 0
__s1_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
497 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
498 ))[1] - __s2[1]); if (__s1_len > 1
__s1_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
499 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
500 ))[2] - __s2[2]); if (__s1_len > 2
__s1_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( p ))[3] - __s2[3]);
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
501 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
never executed: __result = (((const unsigned char *) (const char *) ( p ))[3] - __s2[3]);
0-1920
502 ))[3] - __s2[3]);
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
never executed: __result = (((const unsigned char *) (const char *) ( p ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : (__builtin_constant_p (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
503 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
504 ) && ((size_t)(const void *)((
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
505 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
506 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
507 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
508 ) == 1) && (__s2_len = __builtin_strlen (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
509 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
510 ), __s2_len < 4) ? (__builtin_constant_p (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
511 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
512 ) && ((size_t)(const void *)((
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
513 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
514 ) + 1) - (size_t)(const void *)(
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
515 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
516 ) == 1) ? __builtin_strcmp (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
517 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
518 ,
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
519 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
520 ) : -(__extension__ ({ const unsigned char *__s2 = (const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
521 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
522 ); int __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
523 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
524 ))[0] - __s2[0]); if (__s2_len > 0
__s2_len > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
525 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
526 ))[1] - __s2[1]); if (__s2_len > 1
__s2_len > 1Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) { __result = (((const unsigned char *) (const char *) (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
527 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
528 ))[2] - __s2[2]); if (__s2_len > 2
__s2_len > 2Description
TRUEnever evaluated
FALSEnever evaluated
&& __result == 0
__result == 0Description
TRUEnever evaluated
FALSEnever evaluated
) __result = (((const unsigned char *) (const char *) (
never executed: __result = (((const unsigned char *) (const char *) ( sproposals[j] ))[3] - __s2[3]);
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
529 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
never executed: __result = (((const unsigned char *) (const char *) ( sproposals[j] ))[3] - __s2[3]);
0-1920
530 ))[3] - __s2[3]);
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
never executed: __result = (((const unsigned char *) (const char *) ( sproposals[j] ))[3] - __s2[3]);
}
never executed: end of block
}
never executed: end of block
__result; }))) : __builtin_strcmp (
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-1920
531 p
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
532 ,
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
533 sproposals[j]
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
534 )))); })
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
160-1920
535 == 0
__extension__ ... )))); }) == 0Description
TRUEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
) {
160-1920
536 ret = xstrdup(p);-
537 if (next !=
next != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
0-1920
538 ((void *)0)
next != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 1920 times by 1 test
Evaluated by:
  • test_kex
0-1920
539 )-
540 *
never executed: *next = (cp == ((void *)0) ) ? strlen(c) : (u_int)(cp - c);
next = (
(cp == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
cp ==
(cp == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
never executed: *next = (cp == ((void *)0) ) ? strlen(c) : (u_int)(cp - c);
0
541 ((void *)0)
(cp == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
never executed: *next = (cp == ((void *)0) ) ? strlen(c) : (u_int)(cp - c);
0
542 )
(cp == ((void *)0) )Description
TRUEnever evaluated
FALSEnever evaluated
?
never executed: *next = (cp == ((void *)0) ) ? strlen(c) : (u_int)(cp - c);
0
543 strlen(c) : (u_int)(cp - c);
never executed: *next = (cp == ((void *)0) ) ? strlen(c) : (u_int)(cp - c);
0
544 free(c);-
545 free(s);-
546 return
executed 1920 times by 1 test: return ret;
Executed by:
  • test_kex
ret;
executed 1920 times by 1 test: return ret;
Executed by:
  • test_kex
1920
547 }-
548 }
executed 160 times by 1 test: end of block
Executed by:
  • test_kex
160
549 }
executed 160 times by 1 test: end of block
Executed by:
  • test_kex
160
550 if (next !=
next != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-160
551 ((void *)0)
next != ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 160 times by 1 test
Evaluated by:
  • test_kex
0-160
552 )-
553 *
never executed: *next = strlen(c);
next = strlen(c);
never executed: *next = strlen(c);
0
554 free(c);-
555 free(s);-
556 return
executed 160 times by 1 test: return ((void *)0) ;
Executed by:
  • test_kex
executed 160 times by 1 test: return ((void *)0) ;
Executed by:
  • test_kex
160
557 ((void *)0)
executed 160 times by 1 test: return ((void *)0) ;
Executed by:
  • test_kex
160
558 ;
executed 160 times by 1 test: return ((void *)0) ;
Executed by:
  • test_kex
160
559}-
560static char *-
561filter_list(const char *proposal, const char *filter, int blacklist)-
562{-
563 size_t len = strlen(proposal) + 1;-
564 char *fix_prop = malloc(len);-
565 char *orig_prop = -
566 (__extension__ (__builtin_constant_p (
__builtin_cons...p ( proposal )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
0-10
567 proposal
__builtin_cons...p ( proposal )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
0-10
568 )
__builtin_cons...p ( proposal )Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
&& ((
((size_t)(cons...oposal ) == 1)Description
TRUEnever evaluated
FALSEnever evaluated
size_t)(const void *)((
((size_t)(cons...oposal ) == 1)Description
TRUEnever evaluated
FALSEnever evaluated
0-10
569 proposal
((size_t)(cons...oposal ) == 1)Description
TRUEnever evaluated
FALSEnever evaluated
0
570 ) + 1) - (size_t)(const void *)(
((size_t)(cons...oposal ) == 1)Description
TRUEnever evaluated
FALSEnever evaluated
0
571 proposal
((size_t)(cons...oposal ) == 1)Description
TRUEnever evaluated
FALSEnever evaluated
0
572 ) == 1)
((size_t)(cons...oposal ) == 1)Description
TRUEnever evaluated
FALSEnever evaluated
? (((const
((const char *... ))[0] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
char *) (
((const char *... ))[0] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
0
573 proposal
((const char *... ))[0] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
0
574 ))[0] == '\0'
((const char *... ))[0] == '\0'Description
TRUEnever evaluated
FALSEnever evaluated
? (char *) calloc ((size_t) 1, (size_t) 1) : ({ size_t __len = strlen (
0
575 proposal-
576 ) + 1; char *__retval = (char *) malloc (__len); if (__retval != ((void *)0)
__retval != ((void *)0)Description
TRUEnever evaluated
FALSEnever evaluated
) __retval = (char *) memcpy (__retval,
never executed: __retval = (char *) memcpy (__retval, proposal , __len);
0
577 proposal
never executed: __retval = (char *) memcpy (__retval, proposal , __len);
0
578 , __len);
never executed: __retval = (char *) memcpy (__retval, proposal , __len);
__retval; })) : __strdup (
0
579 proposal-
580 )))-
581 ;-
582 char *cp, *tmp;-
583 int r;-
584-
585 if (fix_prop ==
fix_prop == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
0-10
586 ((void *)0)
fix_prop == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
0-10
587 || orig_prop ==
orig_prop == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
0-10
588 ((void *)0)
orig_prop == ((void *)0)Description
TRUEnever evaluated
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
0-10
589 ) {-
590 free(orig_prop);-
591 free(fix_prop);-
592 return
never executed: return ((void *)0) ;
never executed: return ((void *)0) ;
0
593 ((void *)0)
never executed: return ((void *)0) ;
0
594 ;
never executed: return ((void *)0) ;
0
595 }-
596-
597 tmp = orig_prop;-
598 *fix_prop = '\0';-
599 while ((
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
cp =
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
600 __extension__ ({ char __r0, __r1, __r2; (__builtin_constant_p (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
601 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
602 ) && ((size_t)(const void *)((
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
603 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
604 ) + 1) - (size_t)(const void *)(
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
605 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
606 ) == 1) && (__r0 = ((const char *) (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
607 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
608 ))[0], ((const char *) (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
609 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
610 ))[0] != '\0') ? ((__r1 = ((const char *) (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
611 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
612 ))[1], ((const char *) (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
613 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
614 ))[1] == '\0') ? __strsep_1c (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
615 &tmp
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
616 , __r0) : ((__r2 = ((const char *) (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
617 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
618 ))[2], __r2 == '\0') ? __strsep_2c (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
619 &tmp
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
620 , __r0, __r1) : (((const char *) (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
621 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
622 ))[3] == '\0' ? __strsep_3c (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
623 &tmp
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
624 , __r0, __r1, __r2) : __strsep_g (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
625 &tmp
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
626 ,
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
627 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
628 )))) : __strsep_g (
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
629 &tmp
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
630 ,
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
631 ","
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
632 )); })
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
633 ) !=
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
634 ((void *)0)
(cp = __extens...!= ((void *)0)Description
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 10 times by 1 test
Evaluated by:
  • test_match
10-28
635 ) {-
636 r = match_pattern_list(cp, filter, 0);-
637 if ((blacklist
blacklistDescription
TRUEevaluated 28 times by 1 test
Evaluated by:
  • test_match
FALSEnever evaluated
&& r != 1
r != 1Description
TRUEevaluated 14 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 14 times by 1 test
Evaluated by:
  • test_match
) || (!blacklist
!blacklistDescription
TRUEnever evaluated
FALSEevaluated 14 times by 1 test
Evaluated by:
  • test_match
&& r == 1
r == 1Description
TRUEnever evaluated
FALSEnever evaluated
)) {
0-28
638 if (*
*fix_prop != '\0'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 9 times by 1 test
Evaluated by:
  • test_match
fix_prop != '\0'
*fix_prop != '\0'Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • test_match
FALSEevaluated 9 times by 1 test
Evaluated by:
  • test_match
)
5-9
639 strlcat(fix_prop, ",", len);
executed 5 times by 1 test: strlcat(fix_prop, ",", len);
Executed by:
  • test_match
5
640 strlcat(fix_prop, cp, len);-
641 }
executed 14 times by 1 test: end of block
Executed by:
  • test_match
14
642 }
executed 28 times by 1 test: end of block
Executed by:
  • test_match
28
643 free(orig_prop);-
644 return
executed 10 times by 1 test: return fix_prop;
Executed by:
  • test_match
fix_prop;
executed 10 times by 1 test: return fix_prop;
Executed by:
  • test_match
10
645}-
646-
647-
648-
649-
650-
651char *-
652match_filter_blacklist(const char *proposal, const char *filter)-
653{-
654 return
executed 10 times by 1 test: return filter_list(proposal, filter, 1);
Executed by:
  • test_match
filter_list(proposal, filter, 1);
executed 10 times by 1 test: return filter_list(proposal, filter, 1);
Executed by:
  • test_match
10
655}-
656-
657-
658-
659-
660-
661char *-
662match_filter_whitelist(const char *proposal, const char *filter)-
663{-
664 return
never executed: return filter_list(proposal, filter, 0);
filter_list(proposal, filter, 0);
never executed: return filter_list(proposal, filter, 0);
0
665}-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.2