mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Make XDR decoding more robust.
This commit is contained in:
parent
99a0478445
commit
537415eeb7
5 changed files with 57 additions and 23 deletions
|
|
@ -1546,9 +1546,9 @@ ConvertTranscodeResultToJSException(JSContext* cx, JS::TranscodeResult rv)
|
|||
MOZ_ASSERT(!cx->isExceptionPending());
|
||||
JS_ReportErrorASCII(cx, "Asm.js is not supported by XDR");
|
||||
return false;
|
||||
case JS::TranscodeResult_Failure_UnknownClassKind:
|
||||
case JS::TranscodeResult_Failure_BadDecode:
|
||||
MOZ_ASSERT(!cx->isExceptionPending());
|
||||
JS_ReportErrorASCII(cx, "Unknown class kind, go fix it.");
|
||||
JS_ReportErrorASCII(cx, "XDR data corruption");
|
||||
return false;
|
||||
|
||||
case JS::TranscodeResult_Throw:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue