projects
/
platform
/
upstream
/
dbus.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
94b42749c39b61d428d835e1074290288b6e1b30
[platform/upstream/dbus.git]
/
test
/
test-segfault.c
1
/* This is simply a process that segfaults */
2
#include <signal.h>
3
4
#include <sys/time.h>
5
#include <sys/resource.h>
6
7
int
8
main (int argc, char **argv)
9
{
10
char *p;
11
12
struct rlimit r = { 0, };
13
14
getrlimit (RLIMIT_CORE, &r);
15
r.rlim_cur = 0;
16
setrlimit (RLIMIT_CORE, &r);
17
18
raise (SIGSEGV);
19
20
p = 0;
21
*p = 'a';
22
23
return 0;
24
}