-
Notifications
You must be signed in to change notification settings - Fork 8.3k
tests: Bluetooth: Tester: Fix NULL pointer dereference #99018
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PA sync can be terminated before BIG sync is stopped. This results in ps_sync being NULL and thus crash in stop callback. Simply store address needed by BTP events and don't rely on pa_sync. Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
|
|
|
Linked bug report, please, so we can still get this in |
It doesn't really fix a bug per se IMO; it simply changes the error from a segmentation fault (NULL pointer access) to an assert. The issue of why the pointer is NULL is still there |
I think you confused PRs :-) #99020 This one fix crash in tester :) |
Still needs a bug report, though :) |
Indeed I did :D |



PA sync can be terminated before BIG sync is stopped. This results in ps_sync being NULL and thus crash in stop callback. Simply store address needed by BTP events and don't rely on pa_sync.
fixes #99045