View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000403 | Far Manager | Panel | public | 2007-12-03 00:47 | 2007-12-03 14:43 |
Reporter | alexmitin | Assigned To | alexy | ||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.80 alpha 1 | ||||
Summary | 0000403: Not initialized variable used in MessageRemoveConnection() | ||||
Description | File: panel.cpp Line: 2237 Function: MessageRemoveConnection() Context: static int MessageRemoveConnection(wchar_t Letter, int &UpdateProfile) { ... HKEY hKey; ... if(RegOpenKeyExW(HKEY_CURRENT_USER,strMsgText,0,KEY_QUERY_VALUE,&hKey)!=ERROR_SUCCESS) { DCDlg[5].Flags|=DIF_DISABLE; DCDlg[5].Selected=0; IsPersistent=FALSE; } else DCDlg[5].Selected=Opt.ChangeDriveDisconnetMode; RegCloseKey(hKey); ... } Observations ============= If RegOpenKeyExW() does not return ERROR_SUCCESS the value of "hKey" is not initialized. Later it will be used in RegCloseKey(). This might cause a crash. | ||||
Additional Information | FAR 1.80.0.373 | ||||
Tags | No tags attached. | ||||
Build | 376 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2007-12-03 00:47 | alexmitin | New Issue | |
2007-12-03 01:02 | vskirdin | Status | new => assigned |
2007-12-03 01:02 | vskirdin | Assigned To | => vskirdin |
2007-12-03 13:56 | alexy | Assigned To | vskirdin => alexy |
2007-12-03 14:43 | alexy | Build | => 376 |
2007-12-03 14:43 | alexy | Status | assigned => closed |
2007-12-03 14:43 | alexy | Note Added: 0000940 | |
2007-12-03 14:43 | alexy | Resolution | open => fixed |
2007-12-03 14:43 | alexy | Fixed in Version | => 1.80 alpha 1 |