Closed
Bug 378127
Opened 18 years ago
Closed 18 years ago
ensure OOM checks after PL_DHashTableInit
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 211260
People
(Reporter: sayrer, Assigned: sayrer)
Details
Attachments
(1 file, 1 obsolete file)
28.10 KB,
patch
|
Details | Diff | Splinter Review |
suspect call sites:
http://lxr.mozilla.org/seamonkey/source/widget/src/gtk/nsWindow.cpp#296
http://lxr.mozilla.org/seamonkey/source/content/xul/templates/src/nsTemplateMap.h#56
http://lxr.mozilla.org/seamonkey/source/content/base/src/nsPropertyTable.cpp#307
http://lxr.mozilla.org/seamonkey/source/content/base/src/nsContentList.cpp#230 (checks for success but doesn't return OOM)
http://lxr.mozilla.org/seamonkey/source/security/manager/boot/src/nsSecureBrowserUIImpl.cpp#423 (needs member variable tracking init state)
http://lxr.mozilla.org/seamonkey/source/security/manager/ssl/src/nsNSSShutDown.cpp#85 (needs member variable tracking init state)
http://lxr.mozilla.org/seamonkey/source/layout/style/nsCSSRuleProcessor.cpp#410
http://lxr.mozilla.org/seamonkey/source/caps/include/nsScriptSecurityManager.h#296
http://lxr.mozilla.org/seamonkey/source/netwerk/dns/src/nsHostResolver.cpp#332
http://lxr.mozilla.org/seamonkey/source/netwerk/cache/src/nsCacheEntry.cpp#427 (null out ops?)
http://lxr.mozilla.org/seamonkey/source/netwerk/cache/src/nsDiskCacheBinding.cpp#188 (null out ops?)
Assignee | ||
Comment 1•18 years ago
|
||
PL_DHashTableOperate shows up in a lot of stacks on crash-reports.mozilla.com.
At the very least, this patch prevents a known crasher in nsCSSRuleProcessor under OOM conditions (though the OOM crash just pops up elsewhere for that particular case).
Attachment #269272 -
Flags: superreview?
Attachment #269272 -
Flags: review?(dbaron)
Assignee | ||
Updated•18 years ago
|
Attachment #269272 -
Flags: superreview? → superreview?(cbiesinger)
Assignee | ||
Comment 2•18 years ago
|
||
oops, attached the wrong patch before
Attachment #269272 -
Attachment is obsolete: true
Attachment #269274 -
Flags: superreview?
Attachment #269274 -
Flags: review?(dbaron)
Attachment #269272 -
Flags: superreview?(cbiesinger)
Attachment #269272 -
Flags: review?(dbaron)
Assignee | ||
Updated•18 years ago
|
Attachment #269274 -
Flags: superreview? → superreview?(cbiesinger)
I think these need to be separate review requests for separate areas of code -- what the correct error handling is in each case requires understanding what the code does. We're better off crashing than violating invariants in ways that could lead to exploitable security bugs.
Assignee | ||
Comment 4•18 years ago
|
||
Comment on attachment 269274 [details] [diff] [review]
null out ops if Init fails, and check it before using v2
ok
Attachment #269274 -
Flags: superreview?(cbiesinger)
Attachment #269274 -
Flags: review?(dbaron)
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•