summaryrefslogtreecommitdiff
path: root/test_c_crash.c
diff options
context:
space:
mode:
authorFeideus <erwan.ulrich@gmail.com>2018-07-04 18:32:14 +0200
committerFeideus <erwan.ulrich@gmail.com>2018-07-04 18:32:14 +0200
commitf9d67f1648c17c75169c0f7d9c76d492c84fbea4 (patch)
tree16c1a58453cc0ed0e81f5b745c197abb8d039888 /test_c_crash.c
parent447b7510a8a36a49d1e83ce4f8fda3d62478efc1 (diff)
downloadschemafuzz-f9d67f1648c17c75169c0f7d9c76d492c84fbea4.tar.gz
schemafuzz-f9d67f1648c17c75169c0f7d9c76d492c84fbea4.tar.bz2
schemafuzz-f9d67f1648c17c75169c0f7d9c76d492c84fbea4.zip
Parsing stack traces
Diffstat (limited to 'test_c_crash.c')
-rw-r--r--test_c_crash.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/test_c_crash.c b/test_c_crash.c
new file mode 100644
index 0000000..55afa1c
--- /dev/null
+++ b/test_c_crash.c
@@ -0,0 +1,22 @@
+#include<stdio.h>
+#include<stdlib.h>
+
+void tmpfun();
+void tmpfun2();
+
+int main(int argc, char** argv)
+{
+ printf("crash test");
+ tmpfun();
+ return EXIT_SUCCESS;
+}
+
+void tmpfun()
+{
+ tmpfun2();
+}
+
+void tmpfun2()
+{
+ *(char *)0 = 0;
+}