Skip to content
Snippets Groups Projects
Commit 000b2c70 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

Fix numerous sporadically failing tests.

Don't access uninitialized memory in ev_io_closing().

anfds array is initialized with zeroes, when it's reallocated,
but anfdmax is array size, not array last element, so
anfds[anfdmax] is garbage.

When we're "closing" an fd which has never been added
to anfds (ev_io_start()) wasn't called for it), we
must check that it's within array size boundaries first.
parent bb2b651f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment