mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Do not call __pthread_cxa_finalize with invalid struct dl_phdr_info.
Reported and tested by: Fabian Keil <freebsd-listen fabiankeil de> MFC after: 17 days
This commit is contained in:
parent
b47f51b4a0
commit
3eaca8526c
1 changed files with 1 additions and 1 deletions
|
|
@ -200,6 +200,6 @@ __cxa_finalize(void *dso)
|
|||
if (dso == NULL)
|
||||
_MUTEX_DESTROY(&atexit_mutex);
|
||||
|
||||
if (&__pthread_cxa_finalize != NULL)
|
||||
if (has_phdr && &__pthread_cxa_finalize != NULL)
|
||||
__pthread_cxa_finalize(&phdr_info);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue