Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2fabebd8 authored by Michael Ensing's avatar Michael Ensing
Browse files

Fix CHECK failure in libosi-allocation-tracker fuzzer



If the allocatior had not been initialized prior to a call to
allocation_tracker_notify_alloc, the function would immediately
return the provided pointer, but not track it (as the tracker is not
initialized). On fuzzer loop teardown, allocation_tracker_notify_free
is called, cannot find the pointer/id pair in its map, and asserts.

Test: Ran compiled fuzzer with crashfile before and after change to
      verify crash had been fixed
      (`./libosi_fuzz_allocation_tracker ./corpus/ -runs=0`)
Signed-off-by: default avatarMichael Ensing <michael.ensing@leviathansecurity.com>
Change-Id: I42e2759aa6efb9b6733509e298a552600e874f82
parent 987c8df3
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