WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
19240
WinLauncher _tWinMain() returns uninitialized memory.
https://bugs.webkit.org/show_bug.cgi?id=19240
Summary
WinLauncher _tWinMain() returns uninitialized memory.
Paul Pedriana
Reported
2008-05-24 23:27:38 PDT
WinLauncher _tWinMain() returns uninitialized memory for the msg.wParam variable in some cases. The problem is that the msg variable is uninitialized. The following shows the relevant code: int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { . . MSG msg; . . HRESULT hr = CoCreateInstance(CLSID_WebView, 0, CLSCTX_ALL, IID_IWebView, (void**)&gWebView); if (FAILED(hr)) goto exit; . . exit: . . return (int) msg.wParam; }
Attachments
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2011-06-02 10:05:32 PDT
This has been fixed for some time. The MSG struct is now zero-initialized: MSG msg = {0}; I'll confirm in the debugger and close the issue.
Brent Fulgham
Comment 2
2011-06-02 12:11:00 PDT
I just confirmed that the MSG structure is cleanly initialized, and that the program terminates with the expected success return code during normal operation. Closing as resolved.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug