Merge pull request #116 from trailofbits/fix-crash-clang-6.0

Reliable SIGSEGV in clang 6.0
This commit is contained in:
Alex Groce
2018-09-24 10:13:02 -07:00
committed by GitHub
+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;