diff options
| author | Nikita Popov <npv1310@gmail.com> | 2021-08-12 16:09:50 +0530 |
|---|---|---|
| committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2021-08-16 11:35:35 +0530 |
| commit | 7c987a5ccb31df80456d53a094e47f81310f549b (patch) | |
| tree | f1aac2f4b6d0b2bd9663f956058581999d52f232 /scripts/cpp | |
| parent | 79474303223c5665bec75ffbdb2a86ee04a2514b (diff) | |
| download | glibc-7c987a5ccb31df80456d53a094e47f81310f549b.tar.xz glibc-7c987a5ccb31df80456d53a094e47f81310f549b.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>
(cherry picked from commit 4cc79c217744743077bf7a0ec5e0a4318f1e6641)
Diffstat (limited to 'scripts/cpp')
0 files changed, 0 insertions, 0 deletions
