mirror of
https://sourceware.org/git/glibc.git
synced 2025-05-19 05:53:43 +03: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;
|
struct pthread *pd = (struct pthread *) threadid;
|
||||||
|
|
||||||
/* Make sure the descriptor is valid. */
|
/* 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. */
|
/* Not a valid thread handle. */
|
||||||
return ESRCH;
|
return ESRCH;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user