Closed Bug 415213 Opened 18 years ago Closed 18 years ago

uninitialized variables in PSM

Categories

(Core :: Security: PSM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: KaiE, Assigned: KaiE)

Details

Attachments

(1 file)

Thanks to reed for reporting this. Apparently I always built in debug mode, and I was unaware that gcc will not report some warnings when building without optimization! (weird) I've inspected the sources, and I think none of these is an issue, because the logic ensures the variables will be initialized before the variables are read. So, a fix to these warnings will be of cosmetic nature, but we should do it anyway. nsSecureBrowserUIImpl.cpp /home/kaie/moz/head/mozilla/security/manager/boot/src/nsSecureBrowserUIImpl.cpp: In member function 'nsresult nsSecureBrowserUIImpl::UpdateSecurityState(nsIRequest*)': /home/kaie/moz/head/mozilla/security/manager/boot/src/nsSecureBrowserUIImpl.cpp:999: warning: 'warnSecurityState' may be used uninitialized in this function nsRecentBadCerts.cpp /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsRecentBadCerts.cpp: In member function 'virtual nsresult nsRecentBadCertsService::GetRecentBadCert(const nsAString_internal&, nsISSLStatus**)': /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsRecentBadCerts.cpp:99: warning: 'isUntrusted' may be used uninitialized in this function /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsRecentBadCerts.cpp:98: warning: 'isNotValidAtThisTime' may be used uninitialized in this function /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsRecentBadCerts.cpp:97: warning: 'isDomainMismatch' may be used uninitialized in this function nsSSLThread.cpp /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsSSLThread.cpp: In static member function 'static PRInt32 nsSSLThread::requestWrite(nsNSSSocketInfo*, const void*, PRInt32, PRIntervalTime)': /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsSSLThread.cpp:719: warning: 'my_ssl_state' may be used uninitialized in this function /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsSSLThread.cpp: In static member function 'static PRInt32 nsSSLThread::requestRead(nsNSSSocketInfo*, void*, PRInt32, PRIntervalTime)': /home/kaie/moz/head/mozilla/security/manager/ssl/src/nsSSLThread.cpp:492: warning: 'my_ssl_state' may be used uninitialized in this function
Attached patch Patch v1Splinter Review
Attachment #300832 - Flags: review?(rrelyea)
Attachment #300832 - Flags: review?(rrelyea) → review+
Attachment #300832 - Flags: approval1.9?
Comment on attachment 300832 [details] [diff] [review] Patch v1 a1.9+=damons
Attachment #300832 - Flags: approval1.9? → approval1.9+
fixed
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: