Skip to content

Fix for socket indexing in server.c (poll code path)#181

Merged
radarsat1 merged 2 commits intoradarsat1:masterfrom
malloch:master
Mar 12, 2026
Merged

Fix for socket indexing in server.c (poll code path)#181
radarsat1 merged 2 commits intoradarsat1:masterfrom
malloch:master

Conversation

@malloch
Copy link
Copy Markdown
Contributor

@malloch malloch commented Mar 12, 2026

This PR fixes a bug in which the socket index is not properly incremented when TCP servers occur earlier than the last element of a server array passed to lo_servers_wait_internal().

It also adds a check for accept() failure.

malloch added 2 commits March 11, 2026 23:44
…umbers are used to index an array of sources returning SOCKET_ERROR (-1) writes out of array bounds.
@radarsat1 radarsat1 merged commit 8d46e32 into radarsat1:master Mar 12, 2026
4 checks passed
@radarsat1
Copy link
Copy Markdown
Owner

Look correct, good catch on multiple servers bug.

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.

2 participants