Open Bug 264096 Opened 20 years ago Updated 8 months ago

check if NSS is initialized before calling NSS functions

Categories

(Core :: Security: PSM, defect, P3)

Other Branch
defect

Tracking

()

People

(Reporter: ajschult784, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [kerh-coz][psm-backlog])

from bug 263799:

------- Additional Comment #5 From Robert Relyea 2004-10-11 14:07 PDT [reply]
-------

In some sense this is a latent bug in the application. It's calling NSS
functions even when NSS has not been initialized. Since PK11_LogoutAll has up to
this point been accidentally safe, NSS, at the very least, should continue to
allow calls to PK11_LogoutAll to occur even if NSS is not initialized (in this
case it will continue to be a noop). This will allow bug for bug binary
compatibility with previous versions of NSS. I'll attach a patch to make it so..

bob


------- Additional Comment #13 From Robert Relyea 2004-10-11 15:41 PDT [reply]
-------

I think it would be a good idea to bracket the calls with

if (NSS_IsInitialized()) {
}

in code fragments that are trying shutdown NSS even if it wasn't already shutdown.

bob
Sounds reasonable and simple to do.
Status: NEW → ASSIGNED
Priority: -- → P2
Product: PSM → Core
Whiteboard: [kerh-coz]
QA Contact: ui
reassign bug owner.
mass-update-kaie-20120918
Assignee: kaie → nobody
Component: Security: UI → Security: PSM
Priority: P2 → P3
Whiteboard: [kerh-coz] → [kerh-coz][psm-backlog]
No assignee, updating the status.
Status: ASSIGNED → NEW
No assignee, updating the status.
No assignee, updating the status.
No assignee, updating the status.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.