Skip to content

Fix memory access bug in object_collision_estimator test

In the sanity test of object_collision_estimator. One of the checks will access buffer[buffer.size() - 1]. When the buffer is empty, it could cause problems.

This patch checks for buffer length before accessing the buffer.

Change-Id: I89492c656613fc1ab16d0dbca94e61abfe08768e

Signed-off-by: Liyou Zhou liyou.zhou@arm.com

Issue-Id: SCM-1123

This patch fixes a test failure on master, after the merge, 93da7f55 can be reverted.

Merge request reports