[Bug 34810] New: The winspool.drv:info test crashes on Windows 8
http://bugs.winehq.org/show_bug.cgi?id=34810 Bug #: 34810 Summary: The winspool.drv:info test crashes on Windows 8 Product: Wine Version: 1.7.5 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: spooler AssignedTo: wine-bugs(a)winehq.org ReportedBy: fgouget(a)codeweavers.com Classification: Unclassified winspool.drv:info test crashes on Windows 8 as can be seen on the WineTest site: http://test.winehq.org/data/tests/winspool.drv:info.html Here is a crash report: info.c:2923: Test failed: AddJobA() failed le=50 info.c:2929: Test failed: GetJobA() failed le=87 info.c:2934: this is the last test seen before the exception info: unhandled exception c0000005 at 0040B24A Which corresponds to these lines: 2922 ret = AddJobA( printer, 1, (BYTE *)add_job, needed, &needed ); 2923 ok( ret, "AddJobA() failed le=%d\n", GetLastError() ); -> Failed with ERROR_NOT_SUPPORTED and no job is created. 2925 ret = GetJobA( printer, add_job->JobId, 2, NULL, 0, &needed ); 2926 ok( !ret, "got %d\n", ret ); -> Fails as expected but with ERROR_INVALID_PARAMETER, not ERROR_INSUFFICIENT_BUFFER. So needed is 0. 2927 job_info = HeapAlloc( GetProcessHeap(), 0, needed ); -> So here we allocate a 0-byte structure! 2928 ret = GetJobA( printer, add_job->JobId, 2, (BYTE *)job_info, needed, &needed ); 2929 ok( ret, "GetJobA() failed le=%d\n", GetLastError() ); -> Again ERROR_INVALID_PARAMETER. Then we crash when we try to dereference a pointer in the 0-byte job_info structure we allocated. So it looks like this is all because JOB_INFO_2 is not supported anymore. Yet MSDN says nothing about that. Does that make sense? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=34810 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=34810 Dmitry Timoshkov <dmitry(a)baikal.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a521990a326423b4bcd1fff21c0 | |2d3b279013ec3 Status|NEW |RESOLVED Resolution| |FIXED --- Comment #1 from Dmitry Timoshkov <dmitry(a)baikal.ru> 2013-10-31 20:09:38 CDT --- Should be fixed by a521990a326423b4bcd1fff21c02d3b279013ec3. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=34810 --- Comment #2 from François Gouget <fgouget(a)codeweavers.com> 2013-11-01 03:02:48 CDT --- Yep, looks like it. Thanks! -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
http://bugs.winehq.org/show_bug.cgi?id=34810 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #3 from Alexandre Julliard <julliard(a)winehq.org> 2013-11-08 12:33:10 CST --- Closing bugs fixed in 1.7.6. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email 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.
participants (1)
-
wine-bugs@winehq.org