http://bugs.winehq.org/show_bug.cgi?id=28742
Bug #: 28742 Summary: comctl32/tests/monthcal.ok: Invalid read in MONTHCAL_NotifyDayState() in test_daystate() Product: Wine Version: 1.3.30 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: comctl32 AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com Classification: Unclassified
Running "make monthcal.ok" in comctl32/tests makes Valgrind complain:
Invalid read of size 4 at memcpy (mc_replace_strmem.c:635) by MONTHCAL_NotifyDayState (monthcal.c:1902) by MONTHCAL_UpdateSize (monthcal.c:2545) by MONTHCAL_WindowProc (monthcal.c:2739) by ??? (in user32.dll.so) by call_window_proc (winproc.c:242) by WINPROC_CallProcAtoW (winproc.c:404) by WINPROC_call_window (winproc.c:910) by call_window_proc (message.c:2211) by send_message (message.c:3084) by SendMessageA (message.c:3286) by WIN_CreateWindowEx (win.c:1448) by CreateWindowExA (win.c:1550) by create_monthcal_control (monthcal.c:577) by test_daystate (monthcal.c:1899) by func_monthcal (monthcal.c:1963) by run_test (test.h:556) by main (test.h:624) Address 0x7f22e4c4 is not stack'd, malloc'd or (recently) free'd
The error happens right when creating the control. I don't know where the wild pointer comes from.
http://bugs.winehq.org/show_bug.cgi?id=28742
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com 2011-10-18 01:59:30 CDT --- It's a pointer on stack that comes from test executable, not from a module itself. I sent a patch already http://www.winehq.org/pipermail/wine-patches/2011-October/107993.html.
http://bugs.winehq.org/show_bug.cgi?id=28742
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |482d80cf1632d2cbfb175fa83bc | |0dc733ac360ec Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #2 from Austin English austinenglish@gmail.com 2011-10-18 13:18:55 CDT --- (In reply to comment #1)
It's a pointer on stack that comes from test executable, not from a module itself. I sent a patch already http://www.winehq.org/pipermail/wine-patches/2011-October/107993.html.
http://source.winehq.org/git/wine.git/commitdiff/482d80cf1632d2cbfb175fa83bc...
http://bugs.winehq.org/show_bug.cgi?id=28742
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2011-10-21 13:50:28 CDT --- Closing bugs fixed in 1.3.31.