nptl: Use __pthread_attr_copy in pthread_getattr_default_np (bug 25999)
authorFlorian Weimer <fweimer@redhat.com>
Fri, 15 May 2020 19:24:59 +0000 (21:24 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Wed, 20 May 2020 18:29:10 +0000 (20:29 +0200)
commitcea81e2b7e441663539d196c18bb2568e3e2fae8
tree6da96a605219ff90e7026b36a7c87acaef63492a
parent331c6e8a184167dd21a9f0b3fc165aeefea6eeca
nptl: Use __pthread_attr_copy in pthread_getattr_default_np (bug 25999)

pthread_getattr_default_np needs to make a deep copy.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
nptl/Makefile
nptl/pthread_getattr_default_np.c
nptl/tst-pthread-defaultattr-free.c [new file with mode: 0644]