http://bugs.winehq.org/show_bug.cgi?id=34245
Bug #: 34245 Summary: A simple program I wrote myself making a query of "select * from win32_Directory" via WMI crashed Product: Wine Version: 1.7.0 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wmi&wbemprox AssignedTo: wine-bugs@winehq.org ReportedBy: slvm.free@gmail.com Classification: Unclassified
Created attachment 45570 --> http://bugs.winehq.org/attachment.cgi?id=45570 All crash output from terminal
I wrote a simple program make a query of "select * from Win32_Directory" to WMI, and it crashes every time. But it works well on XP. And I find that it's caused by the funtion of seed_dirs(), in dlls/wbemprox/builtin.c at line 1086, without checking if "const struct expr *cond" is NULL. So when it's NULL code "cond->u.expr.left" would lead to the crash. I found it on version 1.6 at first, and then downloaded v1.7 to install and the problem still exists.