Closed
Bug 1117593
Opened 11 years ago
Closed 11 years ago
Fix handling of impossible cases in txEarlyEvalContext
Categories
(Core :: XSLT, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
Details
Attachments
(1 file)
|
2.60 KB,
patch
|
peterv
:
review+
|
Details | Diff | Splinter Review |
cppcheck says this:
> dom/xslt/xpath/txXPathOptimizer.cpp:53: error: Null pointer dereference
It doesn't really matter because this function should never be reached. But the comment is misleading -- deref'ing 0 won't give us an invalid node, it will cause a crash -- and we have MOZ_CRASH now which is better.
| Assignee | ||
Comment 1•11 years ago
|
||
If we're going to crash in getContextNode(), we might as well crash in all the
other impossible cases.
Attachment #8543704 -
Flags: review?(peterv)
Updated•11 years ago
|
Attachment #8543704 -
Flags: review?(peterv) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
Comment 3•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite-
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
You need to log in
before you can comment on or make changes to this bug.
Description
•