Nikolay Sivov : ws2_32/tests: Initialize address length argument before calling recvfrom()/WSARecvFrom( ) (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Oct 3 15:39:52 CDT 2017
Module: wine
Branch: master
Commit: 4f8c3d4750ea8f87d19adb706478b0ee3c6fbb78
URL: http://source.winehq.org/git/wine.git/?a=commit;h=4f8c3d4750ea8f87d19adb706478b0ee3c6fbb78
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Oct 3 11:56:41 2017 +0300
ws2_32/tests: Initialize address length argument before calling recvfrom()/WSARecvFrom() (Coverity).
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ws2_32/tests/sock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 91305f9..137c0f6 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -6862,7 +6862,7 @@ static DWORD CALLBACK write_watch_thread( void *arg )
{
struct write_watch_thread_args *args = arg;
struct sockaddr addr;
- int addr_len, ret;
+ int addr_len = sizeof(addr), ret;
DWORD bytes, flags = 0;
WSABUF buf[1];
More information about the wine-cvs
mailing list