Reliable SIGSEGV in clang 6.0

This will also fix #95
This commit is contained in:
ggrieco-tob
2018-09-24 13:54:33 -03:00
committed by GitHub
parent 4c7673560e
commit a8b914b35f
+1 -1
View File
@@ -22,7 +22,7 @@ using namespace deepstate;
DEEPSTATE_NOINLINE static unsigned segfault(unsigned x) {
if (x == 0x1234) { // Magic number for engine to discover
unsigned *p = NULL;
*p = 0xdeadbeef; // Trigger segfault here
*(p+1) = 0xdeadbeef; // Trigger segfault here
}
return x;