| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/compat/strlcpy.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||
| 2 | - | |||||||||||||
| 3 | - | |||||||||||||
| 4 | - | |||||||||||||
| 5 | - | |||||||||||||
| 6 | - | |||||||||||||
| 7 | size_t | - | ||||||||||||
| 8 | strlcpy(char *dst, const char *src, size_t dsize) | - | ||||||||||||
| 9 | { | - | ||||||||||||
| 10 | const char *osrc = src; | - | ||||||||||||
| 11 | size_t nleft = dsize; | - | ||||||||||||
| 12 | - | |||||||||||||
| 13 | - | |||||||||||||
| 14 | if (nleft != 0
| 0-37396 | ||||||||||||
| 15 | while (--
| 5510-831489 | ||||||||||||
| 16 | if ((*
| 31886-799603 | ||||||||||||
| 17 | break; executed 31886 times by 32 tests: break;Executed by:
| 31886 | ||||||||||||
| 18 | } executed 799603 times by 32 tests: end of blockExecuted by:
| 799603 | ||||||||||||
| 19 | } executed 37396 times by 32 tests: end of blockExecuted by:
| 37396 | ||||||||||||
| 20 | - | |||||||||||||
| 21 | - | |||||||||||||
| 22 | if (nleft == 0
| 5510-31886 | ||||||||||||
| 23 | if (dsize != 0
| 0-5510 | ||||||||||||
| 24 | * executed 5510 times by 31 tests: dst = '\0';*dst = '\0';Executed by:
executed 5510 times by 31 tests: *dst = '\0';Executed by:
| 5510 | ||||||||||||
| 25 | while (*
| 5510-33930 | ||||||||||||
| 26 | ; executed 33930 times by 31 tests: ;Executed by:
| 33930 | ||||||||||||
| 27 | } executed 5510 times by 31 tests: end of blockExecuted by:
| 5510 | ||||||||||||
| 28 | - | |||||||||||||
| 29 | return executed 37396 times by 32 tests: (src - osrc - 1);return(src - osrc - 1);Executed by:
executed 37396 times by 32 tests: return(src - osrc - 1);Executed by:
| 37396 | ||||||||||||
| 30 | } | - | ||||||||||||
| Switch to Source code | Preprocessed file |