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
/
badaddrvalue.c
blob
1bb20474725247c8de63534d645c332dcee04ff0
1
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
int
main
(
void
)
6
{
7
char
*
aa
=
malloc
(
8
);
8
aa
[-
1
] =
17
;
9
if
(
aa
[-
1
] ==
17
)
10
printf
(
"17
\n
"
);
else
printf
(
"not 17
\n
"
);
11
return
0
;
12
}