Skip to content

visca: Fix crash on unresolved hostname#225

Merged
glikely merged 1 commit intomainfrom
fix-lookup-hostname-crash
May 12, 2025
Merged

visca: Fix crash on unresolved hostname#225
glikely merged 1 commit intomainfrom
fix-lookup-hostname-crash

Conversation

@glikely
Copy link
Owner

@glikely glikely commented May 11, 2025

The VISCA over UDP driver was unconditionally dereferencing an empty list when the lookup_host callback was triggered. When a hostname was resolved there was no problem, but on a lookup failure the addresses list is empty, and the function segfaulted. Fix by checking to see if the list isn't empty before dereferencing it.

The VISCA over UDP driver was unconditionally dereferencing an empty
list when the lookup_host callback was triggered. When a hostname was
resolved there was no problem, but on a lookup failure the addresses
list is empty, and the function segfaulted. Fix by checking to see if
the list isn't empty before dereferencing it.

Signed-off-by: Grant Likely <[email protected]>
@glikely glikely merged commit ff53897 into main May 12, 2025
6 checks passed
@glikely glikely deleted the fix-lookup-hostname-crash branch May 19, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant