Sign in
chromium
/
native_client
/
pnacl-compiler-rt
/
cad11a9ea0008d18125e81beafc27271ee71926e
/
.
/
lib
/
asan
/
output_tests
/
use-after-free.c
blob: 801d3f68a4662c6a35a96c55ccc3915aeec741bd [
file
] [
log
] [
blame
]
#include
<stdlib.h>
int
main
()
{
char
*
x
=
(
char
*)
malloc
(
10
*
sizeof
(
char
));
free
(
x
);
return
x
[
5
];
}
// CHECK: heap-use-after-free
// CHECKSLEEP: Sleeping for 1 second