Skip to content
Commit 16949aea authored by Florian Weimer's avatar Florian Weimer Committed by Arjun Shankar
Browse files

Fix use of __pthread_attr_copy in mq_notify (bug 27896)



__pthread_attr_copy can fail and does not initialize the attribute
structure in that case.

If __pthread_attr_copy is never called and there is no allocated
attribute, pthread_attr_destroy should not be called, otherwise
there is a null pointer dereference in rt/tst-mqueue6.

Fixes commit 42d35935
("Use __pthread_attr_copy in mq_notify (bug 27896)").

Reviewed-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit 217b6dc2)
parent ff75390e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment