Skip to content
Commit 20b21898 authored by Fabian Blatz's avatar Fabian Blatz Committed by Carles Cufí
Browse files

tests: drivers: stepper: stepper_api: Fix UAF of poll signal



The test_target_position test used a stack allocated `poll_signal` which is
kept as a refrence inside the gpio driver. Since the time for polling the
signal was chosen pretty narrow, the function exited with the driver still
trying to signal the stack allocated value upon movement completion.
Fix by adding the structs to the test fixture and increase the timeout.

Resolves #78466.

Signed-off-by: default avatarFabian Blatz <fabianblatz@gmail.com>
parent 23eca636
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment