Closed
Bug 334716
Opened 20 years ago
Closed 20 years ago
Ineffective allocation check in nsParserService::CreateEntry (nsParserService.cpp)
Categories
(Core :: DOM: HTML Parser, defect)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
mozilla1.9alpha1
People
(Reporter: kherron+mozilla, Assigned: rflint)
References
(Blocks 1 open bug, )
Details
(Keywords: coverity)
Attachments
(1 file)
|
755 bytes,
patch
|
mrbkap
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
This was found through a coverity scan of the mozilla source. |nsParserService::CreateEntry| contains the following code:
259 *aEntry = new nsObserverEntry(aTopic);
260
261 if (!aEntry) {
262 return NS_ERROR_OUT_OF_MEMORY;
263 }
Shirley line 261 should be testing |*aEntry|.
| Reporter | ||
Updated•20 years ago
|
Whiteboard: [good first bug]
| Assignee | ||
Comment 1•20 years ago
|
||
Assignee: mrbkap → rflint
Status: NEW → ASSIGNED
Attachment #219217 -
Flags: superreview?(jst)
Attachment #219217 -
Flags: review?(mrbkap)
Comment 2•20 years ago
|
||
Comment on attachment 219217 [details] [diff] [review]
Fix null check on *aEntry
Hey, it was close! ;-)
And don't call me Surely, or something.
Attachment #219217 -
Flags: review?(mrbkap) → review+
Comment 3•20 years ago
|
||
Comment on attachment 219217 [details] [diff] [review]
Fix null check on *aEntry
sr=jst
Attachment #219217 -
Flags: superreview?(jst) → superreview+
| Assignee | ||
Updated•20 years ago
|
Whiteboard: [good first bug] → [checkin needed]
Comment 4•20 years ago
|
||
mozilla/parser/htmlparser/src/nsParserService.cpp 3.19
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed]
Target Milestone: --- → mozilla1.9alpha
Updated•8 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•