Sebastian Lackner : ws2_32: Fix uninitialized memory access in do_poll ( Coverity).
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 8 07:49:55 CDT 2015
Module: wine
Branch: master
Commit: f542a0c18b5a6f0f4d0ef3ce1eb72f48c458035f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f542a0c18b5a6f0f4d0ef3ce1eb72f48c458035f
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Sun Jun 7 19:19:39 2015 +0200
ws2_32: Fix uninitialized memory access in do_poll (Coverity).
---
dlls/ws2_32/socket.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index fdf68a3..1a4533b 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -4800,6 +4800,7 @@ static int do_poll(struct pollfd *pollfds, int count, int timeout)
{
if (errno != EINTR) break;
if (timeout < 0) continue;
+ if (timeout == 0) return 0;
gettimeofday( &tv2, 0 );
More information about the wine-cvs
mailing list