Closed
Bug 1117593
Opened 8 years ago
Closed 8 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•8 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•8 years ago
|
Attachment #8543704 -
Flags: review?(peterv) → review+
![]() |
Assignee | |
Comment 2•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/eb0d05a27922
Comment 3•8 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/eb0d05a27922
Status: ASSIGNED → RESOLVED
Closed: 8 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
•