repo.or.cz
/
valgrind.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git]
/
memcheck
/
tests
/
nanoleak_supp.c
blob
d54e13c333fffd1459e9b4d61fbc24cd07d5b2dd
1
#include
"../include/valgrind.h"
2
#include <stdlib.h>
3
#include <stdio.h>
4
int
main
(
int
argc
,
char
**
argv
)
5
{
6
if
(
argc
>
1
) {
7
char
option
[
200
];
8
sprintf
(
option
,
"--suppressions=%s"
,
argv
[
1
]);
9
VALGRIND_CLO_CHANGE
(
option
);
10
}
11
volatile
int
*
a
=
malloc
(
1000
);
12
a
[
0
] =
0
;
13
return
a
[
0
];
14
}