GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/libc/string/explicit_bzero.c Lines: 4 4 100.0 %
Date: 2017-11-07 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*	$OpenBSD: explicit_bzero.c,v 1.4 2015/08/31 02:53:57 guenther Exp $ */
2
/*
3
 * Public domain.
4
 * Written by Matthew Dempsky.
5
 */
6
7
#include <string.h>
8
9
__attribute__((weak)) void
10
__explicit_bzero_hook(void *buf, size_t len)
11
{
12
194316
}
13
14
void
15
explicit_bzero(void *buf, size_t len)
16
{
17
194316
	memset(buf, 0, len);
18
97158
	__explicit_bzero_hook(buf, len);
19
97158
}
20
DEF_WEAK(explicit_bzero);