diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-08-20 19:11:40 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-08-20 19:11:40 +0000 |
commit | 600b76ca4b5ade70db3864af27a6bcce09a86d4f (patch) | |
tree | 339900d704624592afbd5fb820e1ee48fd7c6dc9 /src | |
parent | 9067f94db3712e073a0400e38e2344332ca925cb (diff) |
Optional crash for testing purpose.
Diffstat (limited to 'src')
-rw-r--r-- | src/htscoremain.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/htscoremain.c b/src/htscoremain.c index b8cabe5..3910157 100644 --- a/src/htscoremain.c +++ b/src/htscoremain.c @@ -2605,6 +2605,15 @@ HTSEXT_API int hts_main2(int argc, char **argv, httrackp * opt) { return 0; break; +#ifdef HTS_CRASH_TEST + case 'c': /* crash test */ + { + char *const ptr = (char*) (uintptr_t) 0x42; + (*ptr)++; + } + break; +#endif + default: printf("Internal option %c not recognized\n", *com); break; |