| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssh/src/uuencode.c |
| Switch to Source code | Preprocessed file |
| Line | Source | Count | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | - | |||||||||||||||||||||||||||||||||||||
| 2 | - | |||||||||||||||||||||||||||||||||||||
| 3 | - | |||||||||||||||||||||||||||||||||||||
| 4 | - | |||||||||||||||||||||||||||||||||||||
| 5 | - | |||||||||||||||||||||||||||||||||||||
| 6 | - | |||||||||||||||||||||||||||||||||||||
| 7 | - | |||||||||||||||||||||||||||||||||||||
| 8 | - | |||||||||||||||||||||||||||||||||||||
| 9 | - | |||||||||||||||||||||||||||||||||||||
| 10 | - | |||||||||||||||||||||||||||||||||||||
| 11 | - | |||||||||||||||||||||||||||||||||||||
| 12 | - | |||||||||||||||||||||||||||||||||||||
| 13 | - | |||||||||||||||||||||||||||||||||||||
| 14 | - | |||||||||||||||||||||||||||||||||||||
| 15 | int | - | ||||||||||||||||||||||||||||||||||||
| 16 | uuencode(const u_char *src, u_int srclength, | - | ||||||||||||||||||||||||||||||||||||
| 17 | char *target, size_t targsize) | - | ||||||||||||||||||||||||||||||||||||
| 18 | { | - | ||||||||||||||||||||||||||||||||||||
| 19 | return executed 1 time by 1 test: return __b64_ntop (src,srclength,target,targsize);Executed by:
executed 1 time by 1 test: return __b64_ntop (src,srclength,target,targsize);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
| 20 | __b64_ntop executed 1 time by 1 test: return __b64_ntop (src,srclength,target,targsize);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
| 21 | (src,srclength,target,targsize); executed 1 time by 1 test: return __b64_ntop (src,srclength,target,targsize);Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
| 22 | } | - | ||||||||||||||||||||||||||||||||||||
| 23 | - | |||||||||||||||||||||||||||||||||||||
| 24 | - | |||||||||||||||||||||||||||||||||||||
| 25 | - | |||||||||||||||||||||||||||||||||||||
| 26 | - | |||||||||||||||||||||||||||||||||||||
| 27 | - | |||||||||||||||||||||||||||||||||||||
| 28 | - | |||||||||||||||||||||||||||||||||||||
| 29 | int | - | ||||||||||||||||||||||||||||||||||||
| 30 | uudecode(const char *src, u_char *target, size_t targsize) | - | ||||||||||||||||||||||||||||||||||||
| 31 | { | - | ||||||||||||||||||||||||||||||||||||
| 32 | int len; | - | ||||||||||||||||||||||||||||||||||||
| 33 | char *encoded, *p; | - | ||||||||||||||||||||||||||||||||||||
| 34 | - | |||||||||||||||||||||||||||||||||||||
| 35 | - | |||||||||||||||||||||||||||||||||||||
| 36 | encoded = xstrdup(src); | - | ||||||||||||||||||||||||||||||||||||
| 37 | - | |||||||||||||||||||||||||||||||||||||
| 38 | for (p = encoded; *
| 0-6 | ||||||||||||||||||||||||||||||||||||
| 39 | ; never executed: ; | 0 | ||||||||||||||||||||||||||||||||||||
| 40 | for (; *
| 0-3704 | ||||||||||||||||||||||||||||||||||||
| 41 | ; executed 3704 times by 1 test: ;Executed by:
| 3704 | ||||||||||||||||||||||||||||||||||||
| 42 | - | |||||||||||||||||||||||||||||||||||||
| 43 | *p = '\0'; | - | ||||||||||||||||||||||||||||||||||||
| 44 | len = | - | ||||||||||||||||||||||||||||||||||||
| 45 | __b64_pton | - | ||||||||||||||||||||||||||||||||||||
| 46 | (encoded,target,targsize); | - | ||||||||||||||||||||||||||||||||||||
| 47 | free(encoded); | - | ||||||||||||||||||||||||||||||||||||
| 48 | return executed 6 times by 1 test: len;return len;Executed by:
executed 6 times by 1 test: return len;Executed by:
| 6 | ||||||||||||||||||||||||||||||||||||
| 49 | } | - | ||||||||||||||||||||||||||||||||||||
| 50 | - | |||||||||||||||||||||||||||||||||||||
| 51 | void | - | ||||||||||||||||||||||||||||||||||||
| 52 | dump_base64(FILE *fp, const u_char *data, u_int len) | - | ||||||||||||||||||||||||||||||||||||
| 53 | { | - | ||||||||||||||||||||||||||||||||||||
| 54 | char *buf; | - | ||||||||||||||||||||||||||||||||||||
| 55 | int i, n; | - | ||||||||||||||||||||||||||||||||||||
| 56 | - | |||||||||||||||||||||||||||||||||||||
| 57 | if (len > 65536
| 0-1 | ||||||||||||||||||||||||||||||||||||
| 58 | fprintf(fp, "dump_base64: len > 65536\n"); | - | ||||||||||||||||||||||||||||||||||||
| 59 | return; never executed: return; | 0 | ||||||||||||||||||||||||||||||||||||
| 60 | } | - | ||||||||||||||||||||||||||||||||||||
| 61 | buf = xreallocarray( | - | ||||||||||||||||||||||||||||||||||||
| 62 | ((void *)0) | - | ||||||||||||||||||||||||||||||||||||
| 63 | , 2, len); | - | ||||||||||||||||||||||||||||||||||||
| 64 | n = uuencode(data, len, buf, 2*len); | - | ||||||||||||||||||||||||||||||||||||
| 65 | for (i = 0; i < n
| 1-204 | ||||||||||||||||||||||||||||||||||||
| 66 | fprintf(fp, "%c", buf[i]); | - | ||||||||||||||||||||||||||||||||||||
| 67 | if (i % 70 == 69
| 2-202 | ||||||||||||||||||||||||||||||||||||
| 68 | fprintf(fp, "\n"); executed 2 times by 1 test: fprintf(fp, "\n");Executed by:
| 2 | ||||||||||||||||||||||||||||||||||||
| 69 | } executed 204 times by 1 test: end of blockExecuted by:
| 204 | ||||||||||||||||||||||||||||||||||||
| 70 | if (i % 70 != 69
| 0-1 | ||||||||||||||||||||||||||||||||||||
| 71 | fprintf(fp, "\n"); executed 1 time by 1 test: fprintf(fp, "\n");Executed by:
| 1 | ||||||||||||||||||||||||||||||||||||
| 72 | free(buf); | - | ||||||||||||||||||||||||||||||||||||
| 73 | } executed 1 time by 1 test: end of blockExecuted by:
| 1 | ||||||||||||||||||||||||||||||||||||
| Switch to Source code | Preprocessed file |