diff options
author | Feideus <erwan.ulrich@gmail.com> | 2018-08-16 18:10:19 +0200 |
---|---|---|
committer | Feideus <erwan.ulrich@gmail.com> | 2018-08-16 18:10:19 +0200 |
commit | c04a3b047197a7b02c5d9e3ebe2aa1f737ca1cd5 (patch) | |
tree | d873a751247dc466a5a98b5d2b751be7502224ba /test_c_crash.c | |
parent | aaebeff02f843ae98b421bc18b331192acfb3e9a (diff) | |
download | schemafuzz-c04a3b047197a7b02c5d9e3ebe2aa1f737ca1cd5.tar.gz schemafuzz-c04a3b047197a7b02c5d9e3ebe2aa1f737ca1cd5.tar.bz2 schemafuzz-c04a3b047197a7b02c5d9e3ebe2aa1f737ca1cd5.zip |
improving synthax for error reports. Handling case where no error was thrown during the target execution
Diffstat (limited to 'test_c_crash.c')
-rwxr-xr-x | test_c_crash.c | 28 |
1 files changed, 5 insertions, 23 deletions
diff --git a/test_c_crash.c b/test_c_crash.c index 8613ac5..d05bf66 100755 --- a/test_c_crash.c +++ b/test_c_crash.c @@ -1,13 +1,17 @@ #include<stdio.h> #include<stdlib.h> +#include<time.h> void tmpfun(); void tmpfun2(); int main(int argc, char** argv) { + srand(time(NULL)); + int random = rand()%2; printf("crash test"); - tmpfun(); + if(random == 1) + tmpfun(); return EXIT_SUCCESS; } @@ -20,25 +24,3 @@ void tmpfun2() { *(char *)0 = 0; } -fileNames: -test_c_crash.c, -fileNames: -test_c_crash.c, -fileNames: -test_c_crash.c, -fileNames: -test_c_crash.c, -fileNames: -test_c_crash.c, -fileNames: -test_c_crash.c, -: -test_c_crash.c, -: -test_c_crash.c, -: -test_c_crash.c, -fileNames: -test_c_crash.c, -fileNames: -errorReports/parsedStackTrace_30, |