Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | size_t | - |
6 | strlcat(char *dst, const char *src, size_t siz) | - |
7 | { | - |
8 | char *d = dst; | - |
9 | const char *s = src; | - |
10 | size_t n = siz; | - |
11 | size_t dlen; | - |
12 | | - |
13 | | - |
14 | while (n-- != 0TRUE | evaluated 18793 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
| FALSE | never evaluated |
&& *TRUE | evaluated 18583 times by 5 testsEvaluated by:- ssh-keygen
- sshd
- test_match
- test_sshkey
- test_utf8
| FALSE | evaluated 210 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
|
d != '\0'TRUE | evaluated 18583 times by 5 testsEvaluated by:- ssh-keygen
- sshd
- test_match
- test_sshkey
- test_utf8
| FALSE | evaluated 210 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
|
) | 0-18793 |
15 | d++;executed 18583 times by 5 tests: d++; Executed by:- ssh-keygen
- sshd
- test_match
- test_sshkey
- test_utf8
| 18583 |
16 | dlen = d - dst; | - |
17 | n = siz - dlen; | - |
18 | | - |
19 | if (n == 0TRUE | never evaluated | FALSE | evaluated 210 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
|
) | 0-210 |
20 | return never executed: return(dlen + strlen(s)); (dlen + strlen(s));never executed: return(dlen + strlen(s)); | 0 |
21 | while (*TRUE | evaluated 4746 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
| FALSE | evaluated 210 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
|
s != '\0'TRUE | evaluated 4746 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
| FALSE | evaluated 210 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
|
) { | 210-4746 |
22 | if (n != 1TRUE | evaluated 4742 times by 6 testsEvaluated by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
| FALSE | evaluated 4 times by 1 test |
) { | 4-4742 |
23 | *d++ = *s; | - |
24 | n--; | - |
25 | }executed 4742 times by 6 tests: end of block Executed by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
| 4742 |
26 | s++; | - |
27 | }executed 4746 times by 6 tests: end of block Executed by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
| 4746 |
28 | *d = '\0'; | - |
29 | | - |
30 | returnexecuted 210 times by 6 tests: return(dlen + (s - src)); Executed by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
(dlen + (s - src));executed 210 times by 6 tests: return(dlen + (s - src)); Executed by:- ssh-keygen
- sshd
- test_kex
- test_match
- test_sshkey
- test_utf8
| 210 |
31 | } | - |
| | |