zephyr/tests/net/socket/socketpair
Chaitanya Tata 40ee8791f2 net: socketpair: Fix use after free
In low memory conditions, its possible for socketpair memory allocation
to fail and then the socketpair is freed but after that the remote
semaphore is released causing a crash.

Fix this by freeing the socketpair after releasing the semaphore. Add a
test case to induce low memory conditions (low HEAP and high socketpair
buffer size), with the fix issue is not seen.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2023-09-18 20:34:12 +02:00
..
src tests: net: socketpair: use a test fixture to deduplicate code 2023-08-22 09:59:44 +02:00
CMakeLists.txt
prj.conf tests: net: socketpair: reduce requirements for test 2023-08-22 09:59:44 +02:00
testcase.yaml net: socketpair: Fix use after free 2023-09-18 20:34:12 +02:00