aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNikita Popov <npv1310@gmail.com>2021-08-09 20:17:34 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-08-09 20:21:04 +0530
commit79474303223c5665bec75ffbdb2a86ee04a2514b (patch)
tree409771cbed292964f57ba93777718919c8a8949d /scripts
parent31902ae639d6a50e768a85f1cd2a17e56b8463c2 (diff)
downloadglibc-79474303223c5665bec75ffbdb2a86ee04a2514b.tar.xz
glibc-79474303223c5665bec75ffbdb2a86ee04a2514b.zip
librt: fix NULL pointer dereference (bug 28213)
Helper thread frees copied attribute on NOTIFY_REMOVED message received from the OS kernel. Unfortunately, it fails to check whether copied attribute actually exists (data.attr != NULL). This worked earlier because free() checks passed pointer before actually attempting to release corresponding memory. But __pthread_attr_destroy assumes pointer is not NULL. So passing NULL pointer to __pthread_attr_destroy will result in segmentation fault. This scenario is possible if notification->sigev_notify_attributes == NULL (which means default thread attributes should be used). Signed-off-by: Nikita Popov <npv1310@gmail.com> Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org> (cherry picked from commit b805aebd42364fe696e417808a700fdb9800c9e8)
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions