Re: [1/3] ws2_32: Fix uninitialized memory access in do_poll (Coverity).
7 Jun
2015
7 Jun
'15
6:53 a.m.
On 30.05.2015 18:20, Sebastian Lackner wrote:
--- dlls/ws2_32/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) I guess it fixes a warning, but timeout == 0 means no timeout and you don't need a timestamp. select() is the only user of it, and it has this:
if (ws_timeout) timeout = (ws_timeout->tv_sec * 1000) + (ws_timeout->tv_usec + 999) / 1000; ret = do_poll(pollfds, count, timeout); --- so probably 0 value should be handled differently within a loop, or need to have a separate case that call poll() once and return right away.
3838
Age (days ago)
3838
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov