Nikita Popov 7c987a5ccb 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>
(cherry picked from commit 4cc79c217744743077bf7a0ec5e0a4318f1e6641)
2021-08-16 11:35:35 +05:30
..
2021-06-28 09:51:01 +02:00
2021-06-28 09:51:01 +02:00
2018-04-02 01:44:14 +02:00
2021-08-16 11:35:35 +05:30
2021-06-21 08:25:15 +02:00
2021-06-21 08:25:15 +02:00
2021-06-15 10:42:11 -03:00
2021-08-16 11:35:35 +05:30
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-15 10:42:11 -03:00
2021-06-28 09:51:01 +02:00