Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adaptived: ftests: Fix freeing of invalid pointer in test 1003
Fix the following error in sudo test 1003: <snip> Debug: handle_special_properties: property=CPUQuota, value->value.str_value=44%, real property: CPUQuotaPerSecUSec Debug: handle_special_properties: sd_bus_message_append(m, (sv), CPUQuotaPerSecUSec, t, 440000 Debug: adaptived main loop exceeded max loops free(): invalid pointer Aborted Test 1003 was re-using the "len" variable and this was confusing getline(). getline() was then re-using a buffer even though it wasn't large enough, leading to a memory corruption. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
- Loading branch information