diff options
author | sayan paul <saypaul@redhat.com> | 2024-05-29 15:31:04 +0530 |
---|---|---|
committer | Arjun Shankar <arjun@redhat.com> | 2024-06-10 17:15:32 +0200 |
commit | 9de9cd17e73db0ba9af9ef11dc12d490fb59720c (patch) | |
tree | dd1c58715ac1492152627fecb9ca78c73ccbe84b /abi-tags | |
parent | a2da98aa2a13b1bde7fd3a98f31b04ddecfafa8f (diff) | |
download | glibc-release/2.39/master.tar.gz glibc-release/2.39/master.tar.xz glibc-release/2.39/master.zip |
malloc: New test to check malloc alternate path using memory obstruction release/2.39/master
The test aims to ensure that malloc uses the alternate path to allocate memory when sbrk() or brk() fails.To achieve this, the test first creates an obstruction at current program break, tests that obstruction with a failing sbrk(), then checks if malloc is still returning a valid ptr thus inferring that malloc() used mmap() instead of brk() or sbrk() to allocate the memory. Reviewed-by: Arjun Shankar <arjun@redhat.com> Reviewed-by: Zack Weinberg <zack@owlfolio.org> (cherry picked from commit 127fc56152347d73cb7c1c283e60e1cb1f15e9f9)
Diffstat (limited to 'abi-tags')
0 files changed, 0 insertions, 0 deletions