forked from OSchip/llvm-project
[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:
parent
20c692a445
commit
4d1ecadda5
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue