| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | #include "includes.h" | - |
| 9 | | - |
| 10 | #include <string.h> | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | #ifndef HAVE_EXPLICIT_BZERO | - |
| 17 | | - |
| 18 | #ifdef HAVE_MEMSET_S | - |
| 19 | | - |
| 20 | void | - |
| 21 | explicit_bzero(void *p, size_t n) | - |
| 22 | { | - |
| 23 | if (n == 0) | - |
| 24 | return; | - |
| 25 | (void)memset_s(p, n, 0, n); | - |
| 26 | } | - |
| 27 | | - |
| 28 | #else /* HAVE_MEMSET_S */ | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | static void (* volatile ssh_bzero)(void *, size_t) = bzero; | - |
| 35 | | - |
| 36 | void | - |
| 37 | explicit_bzero(void *p, size_t n) | - |
| 38 | { | - |
| 39 | if (n == 0)| TRUE | evaluated 1356 times by 3 testsEvaluated by:- ssh-keygen
- test_kex
- test_sshkey
| | FALSE | evaluated 5762854 times by 8 testsEvaluated by:- ssh-keygen
- sshd
- test_bitmap
- test_hostkeys
- test_kex
- test_sshbuf
- test_sshkey
- test_utf8
|
| 1356-5762854 |
| 40 | return;executed 1356 times by 3 tests: return;Executed by:- ssh-keygen
- test_kex
- test_sshkey
| 1356 |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | | - |
| 45 | | - |
| 46 | #if defined(__has_feature) | - |
| 47 | # if __has_feature(memory_sanitizer) | - |
| 48 | memset(p, 0, n); | - |
| 49 | # endif | - |
| 50 | #endif | - |
| 51 | | - |
| 52 | ssh_bzero(p, n); | - |
| 53 | }executed 5762854 times by 8 tests: end of blockExecuted by:- ssh-keygen
- sshd
- test_bitmap
- test_hostkeys
- test_kex
- test_sshbuf
- test_sshkey
- test_utf8
| 5762854 |
| 54 | | - |
| 55 | #endif /* HAVE_MEMSET_S */ | - |
| 56 | | - |
| 57 | #endif /* HAVE_EXPLICIT_BZERO */ | - |
| | |