[Bug 36606] valgrind shows uninitialized memory use in ws2_32/tests/protocol.c

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jun 3 20:26:21 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=36606

--- Comment #2 from Austin English <austinenglish at gmail.com> ---
austin at aw25 ~/wine-valgrind/dlls/ws2_32/tests $ make protocol.ok
gcc -m32 -c -o sock.o sock.c -I. -I../../../include -D__WINESRC__ -D_REENTRANT
-fPIC -Wall -pipe \
  -fno-strict-aliasing -Wdeclaration-after-statement -Wempty-body
-Wignored-qualifiers \
  -Wstrict-prototypes -Wtype-limits -Wunused-but-set-parameter -Wvla
-Wwrite-strings -Wpointer-arith \
  -Wlogical-op -gdwarf-2 -gstrict-dwarf -fno-omit-frame-pointer -g -O0
-fno-inline
../../../tools/winegcc/winegcc -o ws2_32_test.exe.so -B../../../tools/winebuild
-m32 -fasynchronous-unwind-tables \
  protocol.o sock.o testlist.o -lws2_32 -luser32 -lm 
../../../tools/runtest -q -P wine -T ../../.. -M ws2_32.dll -p
ws2_32_test.exe.so protocol && touch protocol.ok
preloader: Warning: failed to reserve range 00110000-68000000
preloader: Warning: failed to reserve range 7f000000-82000000
fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x0000dead>
fixme:winsock:WS_EnterSingleProtocolW unknown Protocol <0x0000cafe>
==18265== Invalid write of size 4
==18265==    at 0x402E46B: memset (mc_replace_strmem.c:1055)
==18265==    by 0x50A8FD5: WS_EnterSingleProtocolA (socket.c:1778)
==18265==    by 0x50A922C: WS_EnumProtocols (socket.c:1832)
==18265==    by 0x50B8C95: WSAEnumProtocolsA (socket.c:7483)
==18265==    by 0x4F596A8: test_WSAEnumProtocolsA (protocol.c:110)
==18265==    by 0x4F59D9E: func_protocol (protocol.c:202)
==18265==    by 0x4F80BB1: run_test (test.h:584)
==18265==    by 0x4F80FA0: main (test.h:654)
==18265==  Address 0x4a9d5c0 is 0 bytes after a block of size 744 alloc'd
==18265==    at 0x7BC4C6EB: notify_alloc (heap.c:255)
==18265==    by 0x7BC50F2F: RtlAllocateHeap (heap.c:1716)
==18265==    by 0x4F5967C: test_WSAEnumProtocolsA (protocol.c:106)
==18265==    by 0x4F59D9E: func_protocol (protocol.c:202)
==18265==    by 0x4F80BB1: run_test (test.h:584)
==18265==    by 0x4F80FA0: main (test.h:654)
==18265== 

austin at aw25 ~/wine-valgrind/dlls/ws2_32/tests $ uname -a
Linux aw25 3.13.3-gentoo-devlight-1 #1 SMP Thu Feb 20 00:10:55 Local time zone
must be set--see zic  x86_64 Intel(R) Core(TM) i7 CPU 960 @ 3.20GHz
GenuineIntel GNU/Linux

is there some logs you'd like?

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list