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
Bug 480126 - Build failure on Raspberry Pi 5 / OS 6.1.0-rpi7-rpi-v8
[valgrind.git]
/
memcheck
/
tests
/
malloc1.c
blob
dff5250eb4b9e6af494f64fb9748fc288c828d11
1
2
#include <stdio.h>
3
#include <stdlib.h>
4
5
void
really
(
void
);
6
7
int
main
(
void
)
8
{
9
really
();
10
return
0
;
11
}
12
13
void
really
(
void
)
14
{
15
int
i
;
16
char
*
p
=
malloc
(
10
);
17
for
(
i
=
0
;
i
<
10
;
i
++)
18
p
[
i
] =
'z'
;
19
free
(
p
);
20
p
[
1
] =
'z'
;
21
p
=
malloc
(
10
);
22
p
[
2
] =
'z'
;
23
p
[-
1
] =
'z'
;
24
}