forked from OSchip/llvm-project
[asan] Improve vDSO check in AsanCheckDynamicRTPrereqs; patch by Yuri Gribov
llvm-svn: 210012
This commit is contained in:
parent
e18ff37e08
commit
5181dd3a56
|
@ -91,6 +91,10 @@ static int FindFirstDSOCallback(struct dl_phdr_info *info, size_t size,
|
|||
if (!info->dlpi_name || info->dlpi_name[0] == 0)
|
||||
return 0;
|
||||
|
||||
// Ignore vDSO
|
||||
if (internal_strncmp(info->dlpi_name, "linux-", sizeof("linux-") - 1) == 0)
|
||||
return 0;
|
||||
|
||||
*(const char **)data = info->dlpi_name;
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue