https://bugs.winehq.org/show_bug.cgi?id=36130
Bug ID: 36130 Summary: valgrind shows some invalid reads in ole32/tests/hglobalstream.c Product: Wine Version: 1.7.17 Hardware: x86 OS: Linux Status: NEW Keywords: download, source, testcase Severity: normal Priority: P2 Component: ole32 Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
../../../tools/runtest -q -P wine -T ../../.. -M ole32.dll -p ole32_test.exe.so hglobalstream && touch hglobalstream.ok preloader: Warning: failed to reserve range 00110000-68000000 preloader: Warning: failed to reserve range 7f000000-82000000 ==26781== Invalid read of size 2 ==26781== at 0x7B841AFA: GlobalLock (heap.c:440) ==26781== by 0x534D47B: HGLOBALStreamImpl_Read (hglobalstream.c:170) ==26781== by 0x4D5792D: func_hglobalstream (objidl.h:4381) ==26781== by 0x4D466F7: main (test.h:584) ==26781== Address 0x4809c00 is 16 bytes after a block of size 32 free'd ==26781== at 0x7BC4CD2C: RtlFreeHeap (heap.c:1766) ==26781== by 0x534D662: HGLOBALStreamImpl_Release (hglobalstream.c:124) ==26781== by 0x4D57740: func_hglobalstream (objidl.h:4377) ==26781== by 0x4D466F7: main (test.h:584) ==26781==
==26781== Invalid read of size 4 ==26781== at 0x7B84229F: GlobalReAlloc (heap.c:672) ==26781== by 0x534D244: HGLOBALStreamImpl_SetSize (hglobalstream.c:381) ==26781== by 0x4D579C1: func_hglobalstream (objidl.h:4391) ==26781== by 0x4D466F7: main (test.h:584) ==26781== Address 0x4809c02 is 18 bytes after a block of size 32 free'd ==26781== at 0x7BC4CD2C: RtlFreeHeap (heap.c:1766) ==26781== by 0x534D662: HGLOBALStreamImpl_Release (hglobalstream.c:124) ==26781== by 0x4D57740: func_hglobalstream (objidl.h:4377) ==26781== by 0x4D466F7: main (test.h:584) ==26781==
==26781== Invalid read of size 4 ==26781== at 0x7B84229F: GlobalReAlloc (heap.c:672) ==26781== by 0x534D244: HGLOBALStreamImpl_SetSize (hglobalstream.c:381) ==26781== by 0x534D366: HGLOBALStreamImpl_Write (objidl.h:4391) ==26781== by 0x4D57A07: func_hglobalstream (objidl.h:4384) ==26781== by 0x4D466F7: main (test.h:584) ==26781== Address 0x4809c02 is 18 bytes after a block of size 32 free'd ==26781== at 0x7BC4CD2C: RtlFreeHeap (heap.c:1766) ==26781== by 0x534D662: HGLOBALStreamImpl_Release (hglobalstream.c:124) ==26781== by 0x4D57740: func_hglobalstream (objidl.h:4377) ==26781== by 0x4D466F7: main (test.h:584) ==26781==
err:storage:HGLOBALStreamImpl_Write IStream_SetSize failed with error 0x8007000e
http://bugs.winehq.org/show_bug.cgi?id=36130
--- Comment #1 from Vincent Povirk madewokherd@gmail.com --- AFAICT test_freed_hglobal() does this on purpose.
https://bugs.winehq.org/show_bug.cgi?id=36130
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX
--- Comment #2 from Austin English austinenglish@gmail.com --- I've added a suppression for it, thanks.
https://bugs.winehq.org/show_bug.cgi?id=36130
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Austin English austinenglish@gmail.com --- Closing.
http://bugs.winehq.org/show_bug.cgi?id=36130
--- Comment #4 from Austin English austinenglish@gmail.com --- *** Bug 36415 has been marked as a duplicate of this bug. ***