[ASan] Refine diagnoses messages

The provided PC is not reliable in every case, so don't suggest
something that does not make sense.

llvm-svn: 374959
This commit is contained in:
Julian Lettner 2019-10-16 00:39:09 +00:00
parent 20c692a445
commit 4d1ecadda5
1 changed files with 1 additions and 2 deletions

View File

@ -210,8 +210,7 @@ static void ReportDeadlySignalImpl(const SignalContext &sig, u32 tid,
Report("The signal is caused by a %s memory access.\n", access_type);
if (!sig.is_true_faulting_addr)
Report("Hint: this fault was caused by a dereference of a high value "
"address (see registers below). Dissassemble the provided pc "
"to learn which register value was used.\n");
"address (see register values below).\n");
else if (sig.addr < GetPageSizeCached())
Report("Hint: address points to the zero page.\n");
}