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
tests/vg_regtest: Always evaluate prerequisite expressions with sh
[valgrind.git]
/
memcheck
/
tests
/
darwin
/
deep_badparam.c
blob
9f12683708be6a93579463d0bc615a113aab9d8c
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <unistd.h>
4
5
int
func_six
(
int
x
)
6
{
7
char
b
[
32
];
8
int
r
=
write
(
1
,
b
,
sizeof
(
b
));
9
return
x
;
10
}
11
12
int
func_five
(
int
x
)
13
{
14
return
func_six
(
x
+
5
);
15
}
16
17
int
func_four
(
int
x
)
18
{
19
return
func_five
(
x
+
4
);
20
}
21
22
int
func_three
(
int
x
)
23
{
24
return
func_four
(
x
+
3
);
25
}
26
27
int
func_two
(
int
x
)
28
{
29
return
func_three
(
x
+
2
);
30
}
31
32
int
func_one
(
int
x
)
33
{
34
return
func_two
(
x
+
1
);
35
}
36
37
int
main
(
void
)
38
{
39
func_one
(
10
);
40
return
0
;
41
}