mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-05-31 17:18:57 +00:00
Make creation of an Error not capture a filename/lineno it shouldn't have access to; A potential crash
This commit is contained in:
@@ -637,6 +637,7 @@ TokenStream::reportCompileErrorNumberVA(uint32_t offset, unsigned flags, unsigne
|
||||
if (offset != NoOffset && !err.report.filename && cx->isJSContext()) {
|
||||
NonBuiltinFrameIter iter(cx->asJSContext(),
|
||||
FrameIter::ALL_CONTEXTS, FrameIter::GO_THROUGH_SAVED,
|
||||
FrameIter::FOLLOW_DEBUGGER_EVAL_PREV_LINK,
|
||||
cx->compartment()->principals);
|
||||
if (!iter.done() && iter.scriptFilename()) {
|
||||
callerFilename = true;
|
||||
|
||||
Reference in New Issue
Block a user