[hwasan] More realistic setjmp test.
authorFlorian Mayer <fmayer@google.com>
Fri, 9 Jul 2021 15:44:12 +0000 (16:44 +0100)
committerFlorian Mayer <fmayer@google.com>
Fri, 9 Jul 2021 19:27:32 +0000 (20:27 +0100)
commit5511bfdb671505c1e7968ab8ef6032414bba3852
tree2e1e4a3b5dfacc3845aa7630aa74ae50212c024e
parentecd15fbf6bb5d26d5f2522975830503a790b78c6
[hwasan] More realistic setjmp test.

The existing one actually failed on the int* p, not on int z (as can be
seen by the fault being 8 bytes rather than 4).

This is also needed to make sure the stack safety analysis does not
classify the alloca as safe.

Reviewed By: hctim

Differential Revision: https://reviews.llvm.org/D105705
compiler-rt/test/hwasan/TestCases/longjmp.c