Skip to content
Commit 4cc79c21 authored by Nikita Popov's avatar Nikita Popov Committed by Siddhesh Poyarekar
Browse files

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: default avatarNikita Popov <npv1310@gmail.com>
Reviewed-by: default avatarSiddhesh Poyarekar <siddhesh@sourceware.org>
parent dc906e94
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