[Bug 43376] New: valgrind shows some invalid writes in dlls/msvcirt/tests/ msvcirt.c
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Jul 18 15:50:36 CDT 2017
https://bugs.winehq.org/show_bug.cgi?id=43376
Bug ID: 43376
Summary: valgrind shows some invalid writes in
dlls/msvcirt/tests/msvcirt.c
Product: Wine
Version: 2.12
Hardware: x86
OS: Linux
Status: NEW
Keywords: download, source, testcase, valgrind
Severity: normal
Priority: P2
Component: msvcirt
Assignee: wine-bugs at winehq.org
Reporter: austinenglish at gmail.com
Distribution: Debian
==29409== Invalid write of size 1
==29409== at 0x402EEF8: strcpy (vg_replace_strmem.c:506)
==29409== by 0x7BC917EA: NTDLL_strcpy (string.c:117)
==29409== by 0x4A27063: test_strstreambuf (msvcirt.c:2168)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409== Address 0x4d4215d is 0 bytes after a block of size 5 alloc'd
==29409== at 0x7BC51061: notify_alloc (heap.c:254)
==29409== by 0x7BC5554F: RtlAllocateHeap (heap.c:1716)
==29409== by 0x4BBB10A: msvcrt_heap_alloc (heap.c:70)
==29409== by 0x4BBB376: MSVCRT_operator_new (heap.c:138)
==29409== by 0x4E7275D: strstreambuf_doallocate (msvcirt.c:1430)
==29409== by 0x4A26F8E: test_strstreambuf (msvcirt.c:2162)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409==
==29409== Invalid write of size 1
==29409== at 0x4E72A0F: strstreambuf_overflow (msvcirt.c:1481)
==29409== by 0x4A288E2: test_strstreambuf (msvcirt.c:2298)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409== Address 0x4d42205 is 1 bytes after a block of size 20 alloc'd
==29409== at 0x7BC51061: notify_alloc (heap.c:254)
==29409== by 0x7BC5554F: RtlAllocateHeap (heap.c:1716)
==29409== by 0x4BBB10A: msvcrt_heap_alloc (heap.c:70)
==29409== by 0x4BBB376: MSVCRT_operator_new (heap.c:138)
==29409== by 0x4E7275D: strstreambuf_doallocate (msvcirt.c:1430)
==29409== by 0x4E729B2: strstreambuf_overflow (msvcirt.c:1474)
==29409== by 0x4A288E2: test_strstreambuf (msvcirt.c:2298)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409==
==29409== Invalid read of size 1
==29409== at 0x4A28AC3: test_strstreambuf (msvcirt.c:2305)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409== Address 0x4d42205 is 1 bytes after a block of size 20 alloc'd
==29409== at 0x7BC51061: notify_alloc (heap.c:254)
==29409== by 0x7BC5554F: RtlAllocateHeap (heap.c:1716)
==29409== by 0x4BBB10A: msvcrt_heap_alloc (heap.c:70)
==29409== by 0x4BBB376: MSVCRT_operator_new (heap.c:138)
==29409== by 0x4E7275D: strstreambuf_doallocate (msvcirt.c:1430)
==29409== by 0x4E729B2: strstreambuf_overflow (msvcirt.c:1474)
==29409== by 0x4A288E2: test_strstreambuf (msvcirt.c:2298)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409==
==29409== Invalid read of size 1
==29409== at 0x4A28AD2: test_strstreambuf (msvcirt.c:2305)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409== Address 0x4d42205 is 1 bytes after a block of size 20 alloc'd
==29409== at 0x7BC51061: notify_alloc (heap.c:254)
==29409== by 0x7BC5554F: RtlAllocateHeap (heap.c:1716)
==29409== by 0x4BBB10A: msvcrt_heap_alloc (heap.c:70)
==29409== by 0x4BBB376: MSVCRT_operator_new (heap.c:138)
==29409== by 0x4E7275D: strstreambuf_doallocate (msvcirt.c:1430)
==29409== by 0x4E729B2: strstreambuf_overflow (msvcirt.c:1474)
==29409== by 0x4A288E2: test_strstreambuf (msvcirt.c:2298)
==29409== by 0x4A6365D: func_msvcirt (msvcirt.c:7474)
==29409== by 0x4A64590: run_test (test.h:603)
==29409== by 0x4A649EE: main (test.h:687)
==29409==
--
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