about summary refs log tree commit diff
path: root/COPYING
diff options
context:
space:
mode:
authorNikita Popov <npv1310@gmail.com>2021-08-12 16:09:50 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-08-12 16:09:50 +0530
commit4cc79c217744743077bf7a0ec5e0a4318f1e6641 (patch)
treed8b3fe97d08dcd0504d29040ac3e5ceebcbc5fd0 /COPYING
parentdc906e94f7033892dadbd91718349f19e1376391 (diff)
downloadglibc-4cc79c217744743077bf7a0ec5e0a4318f1e6641.tar.gz
glibc-4cc79c217744743077bf7a0ec5e0a4318f1e6641.tar.xz
glibc-4cc79c217744743077bf7a0ec5e0a4318f1e6641.zip
librt: add test (bug 28213)
This test implements following logic:
1) Create POSIX message queue.
   Register a notification with mq_notify (using NULL attributes).
   Then immediately unregister the notification with mq_notify.
   Helper thread in a vulnerable version of glibc
   should cause NULL pointer dereference after these steps.
2) Once again, register the same notification.
   Try to send a dummy message.
   Test is considered successfulif the dummy message
   is successfully received by the callback function.

Signed-off-by: Nikita Popov <npv1310@gmail.com>
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions