Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix null dereference in check_finalizer_nested if redirect malloc on …
…Linux (fix of commit 644cf3c) Issue #582 (bdwgc). As noted in GC_pthread_start, an allocation may happen in GC_get_stack_base, causing GC_notify_or_invoke_finalizers to be called before the thread gets registered. * pthread_support.c [!GC_NO_FINALIZATION] (GC_check_finalizer_nested): Define me local variable. * pthread_support.c [!GC_NO_FINALIZATION && INCLUDE_LINUX_THREAD_DESCR && REDIRECT_MALLOC] (GC_check_finalizer_nested): If me variable is NULL then return NULL; add comment.
- Loading branch information