projects
/
oweals
/
gnunet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Action API detects segmentation fault
[oweals/gnunet.git]
/
src
/
monkey
/
bug_null_pointer_exception.c
1
#include <stdio.h>
2
#include <string.h>
3
4
5
struct CrashStruct {
6
const char *crashValue;
7
};
8
9
void crashFunction()
10
{
11
struct CrashStruct *crashStruct;
12
crashStruct = NULL;
13
printf("Now the program will crash!\n");
14
crashStruct->crashValue = "hello!";
15
}
16
17
int main(int argc, char *argv[])
18
{
19
crashFunction();
20
return 0;
21
}