mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
(pthread_join): Limited checking for invalid descriptors.
This commit is contained in:
parent
36f0ccda0b
commit
3182090730
@ -40,7 +40,7 @@ pthread_join (threadid, thread_return)
|
||||
struct pthread *pd = (struct pthread *) threadid;
|
||||
|
||||
/* Make sure the descriptor is valid. */
|
||||
if (DEBUGGING_P && __find_in_stack_list (pd) == NULL)
|
||||
if ((DEBUGGING_P && __find_in_stack_list (pd) == NULL) || pd->tid <= 0)
|
||||
/* Not a valid thread handle. */
|
||||
return ESRCH;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user