mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
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.
This commit is contained in:
parent
84803a0ee0
commit
bd6113172a
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user