about summary refs log tree commit diff
path: root/inet
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-06-01 17:51:41 +0200
committerFlorian Weimer <fweimer@redhat.com>2021-06-02 07:12:18 +0200
commit217b6dc298156bdb0d6aea9ea93e7e394a5ff091 (patch)
treee2a2d98615e9ac26cfb6e4399322c22889a214a1 /inet
parent42d359350510506b87101cf77202fefcbfc790cb (diff)
downloadglibc-217b6dc298156bdb0d6aea9ea93e7e394a5ff091.tar.gz
glibc-217b6dc298156bdb0d6aea9ea93e7e394a5ff091.tar.xz
glibc-217b6dc298156bdb0d6aea9ea93e7e394a5ff091.zip
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 42d359350510506b87101cf77202fefcbfc790cb
("Use __pthread_attr_copy in mq_notify (bug 27896)").

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'inet')
0 files changed, 0 insertions, 0 deletions