[asan] Increase LocatePcInTrace threshold.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 20 Apr 2016 22:45:25 +0000 (22:45 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Wed, 20 Apr 2016 22:45:25 +0000 (22:45 +0000)
commit033c5d55c154b26e88c5e789fc2178b33cf69127
treec10a7867021d2c222c8ec8fafd1ed8913f216576
parent5d71bc52528893864b1c8e8efcf880b6197ee03c
[asan] Increase LocatePcInTrace threshold.

Not sure what changed, but on my machine this is literally one byte
short. Only happens when malloc_context_size <= 2 due to the special
case in GET_STACK_TRACE definition (see asan_stack.h):
StackTrace::GetCurrentPc() on the right (context size > 2) branch
returns the address that is 200-something bytes from the return
address it is later matched to, while the same call on the left
branch is 321 bytes away from it.

This fixes the double-free test on my machine.

llvm-svn: 266932
compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc