GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/libc/string/explicit_bzero.c Lines: 4 4 100.0 %
Date: 2017-11-13 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
30
}
13
14
void
15
explicit_bzero(void *buf, size_t len)
16
{
17
30
	memset(buf, 0, len);
18
15
	__explicit_bzero_hook(buf, len);
19
15
}
20
DEF_WEAK(explicit_bzero);