diff options
author | wtchang%redhat.com <devnull@localhost> | 2006-03-13 21:53:44 +0000 |
---|---|---|
committer | wtchang%redhat.com <devnull@localhost> | 2006-03-13 21:53:44 +0000 |
commit | 04f5bffda043f2361f1f2e03ced2737224e53067 (patch) | |
tree | 3a3ff9bb36837436caf1c9f25927edb10327d99b | |
parent | e31d72e33ba29a83c5cc8eabdf97924e3e397e46 (diff) | |
download | nspr-hg-04f5bffda043f2361f1f2e03ced2737224e53067.tar.gz |
Bugzilla Bug 330364: fixed a NULL pointer dereference in
PR_LoadStaticLibrary by moving the PR_LOG statement to the same location
as in pr_LoadLibraryByPathname. The bug was discovered by Coverity's tool.
r=Kenneth Herron,Gavin Sharp.
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r-- | pr/src/linking/prlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c index a23bc599..76be43ec 100644 --- a/pr/src/linking/prlink.c +++ b/pr/src/linking/prlink.c @@ -1603,8 +1603,8 @@ PR_LoadStaticLibrary(const char *name, const PRStaticLinkTable *slt) result = lm; /* success */ PR_ASSERT(lm->refCount == 1); - unlock: PR_LOG(_pr_linker_lm, PR_LOG_MIN, ("Loaded library %s (static lib)", lm->name)); + unlock: PR_ExitMonitor(pr_linker_lock); return result; } |