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
/
x86-linux
/
scalar_openat2.c
blob
1e508e1618d9a2ce3ab7663ec91ca24358c1c76b
1
#define _GNU_SOURCE
2
3
#include
"../../memcheck.h"
4
#include
"scalar.h"
5
6
int
main
(
void
)
7
{
8
// uninitialised, but we know px[0] is 0x0
9
long
*
px
=
malloc
(
sizeof
(
long
));
10
long
x0
=
px
[
0
];
11
long
res
;
12
13
// __NR_openat2 337
14
GO
(
__NR_openat2
,
"4s 2m"
);
15
SY
(
__NR_openat2
,
x0
,
x0
+
1
,
x0
+
1
,
x0
);
FAIL
;
16
}
17