projects
/
tinc
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Wipe (some) secrets from memory after use
[tinc]
/
test
/
unit
/
test_memzero_null.c
1
// Test that memzero() with NULL pointer crashes the program
2
3
#include "config.h"
4
#undef HAVE_ATTR_NONNULL
5
6
#include "unittest.h"
7
#include "../../src/xalloc.h"
8
9
int main(void) {
10
memzero(NULL, 1);
11
return 0;
12
}