Open
Bug 321600
Opened 19 years ago
Updated 1 year ago
SECMOD_LoadPKCS11Module calls to PR_GetLibraryName must use PR_FreeLibraryName
Categories
(NSS :: Libraries, defect, P5)
Tracking
(Not tracked)
NEW
People
(Reporter: timeless, Unassigned)
Details
Attachments
(1 file)
1.37 KB,
patch
|
wtc
:
review+
|
Details | Diff | Splinter Review |
it's not a good idea to leave bad code around, someone might thing it's a good sample and copy it :(.
Attachment #206912 -
Flags: review?(wtchang)
Comment 2•19 years ago
|
||
Comment on attachment 206912 [details] [diff] [review] make alternate codepath correct I found that the return value of PR_GetLibraryPath also needs to be freed, but there is no PR_FreeLibraryPath function, so we need to use PR_Free to free it. We should just remove the #ifdef notdef code. If we do that, we should just pass mod->dllName to PR_LoadLibrary and get rid of the full_name variable and the PORT_Strdup call.
Attachment #206912 -
Flags: review?(wtchang) → review+
yeah PR_GetLibraryPath worried me, but i couldn't figure out what to do with it :).
Updated•18 years ago
|
Assignee: wtchang → nobody
QA Contact: jason.m.reid → libraries
Comment 4•18 years ago
|
||
Alexei, please check this in on the trunk for 3.12
Assignee: nobody → alexei.volkov.bugs
OS: Windows XP → All
Priority: -- → P4
Hardware: PC → All
Target Milestone: --- → 3.12
Version: unspecified → 3.11
Comment 5•18 years ago
|
||
/cvsroot/mozilla/security/nss/lib/pk11wrap/pk11load.c,v <-- pk11load.c new revision: 1.20; previous revision: 1.19 the code still have know mem leak(see comment 2). Will need to make another patch.
Comment 6•17 years ago
|
||
(In reply to comment #2) > (From update of attachment 206912 [details] [diff] [review]) > I found that the return value of PR_GetLibraryPath also needs to be freed, > but there is no PR_FreeLibraryPath function, so we need to use PR_Free to > free it. Wan-Teh, There are no calls to PR_GetLibraryPath in NSS, so how is this comment relevant to this bug? Your comment 2 says "We should just remove the #ifdef notdef code." That's exactly the code that timeless's patch added. I think you meant that we should keep the ifdef notdef code and get rid of the other path. But PR_FreeLibraryName is just a synonym for PR_Free, so this whole bug seems pointless. Let's work on fixing real bugs that cause real problems. I vote for WONTFIX.
Priority: P4 → P5
Comment 7•15 years ago
|
||
Unsetting target milestone in unresolved bugs whose targets have passed.
Target Milestone: 3.12 → ---
Updated•2 years ago
|
Severity: minor → S4
Comment 8•1 year ago
|
||
The bug assignee is inactive on Bugzilla, so the assignee is being reset.
Assignee: alvolkov.bgs → nobody
You need to log in
before you can comment on or make changes to this bug.
Description
•