All users were logged out of Bugzilla on October 13th, 2018

NSS_InitReadWrite("sql:<dbdir>") causes NSS to look for "sql:<dbdir>/libnssckbi.so"

RESOLVED FIXED in 3.12.4

Status

P1
minor
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: wtc, Assigned: wtc)

Tracking

3.12
3.12.4

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

10 years ago
Created attachment 379939 [details] [diff] [review]
Proposed patch

If I call NSS_InitReadWrite("sql:<dbdir>"), with the "sql:" prefix,
nss_FindExternalRoot calls SECMOD_AddNewModule with the wrong pathname
"sql:<dbdir>/libnssckbi.so".

We should strip the "sql:" prefix from the pathname, so that
nss_FindExternalRoot calls SECMOD_AddNewModule with
"<dbdir>/libnssckbi.so".  The attached patch strips "sql:" in nss_Init,
but we could also do that in nss_FindExternalRoot or
nss_FindExternalRootPaths.
Attachment #379939 - Flags: review?(rrelyea)

Updated

10 years ago
Attachment #379939 - Flags: review?(rrelyea) → review+

Comment 1

10 years ago
Comment on attachment 379939 [details] [diff] [review]
Proposed patch

r+ rrelyea
Priority: -- → P1
Version: unspecified → 3.12
(Assignee)

Comment 2

10 years ago
I checked in the patch on the NSS trunk (NSS 3.12.4).

Checking in nssinit.c;
/cvsroot/mozilla/security/nss/lib/nss/nssinit.c,v  <--  nssinit.c
new revision: 1.98; previous revision: 1.97
done
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.