diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-01-26 21:26:07 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-08 23:32:18 +0100 |
commit | 91d9f5d658d646e1ad1c0b3a28a9bba0094a44c6 (patch) | |
tree | bddbc08072e3baefc28563eecaa70251f56b19c6 /js/src/shell | |
parent | a8d25a2ed6e6306fb073578158572b04749f7891 (diff) | |
download | UXP-91d9f5d658d646e1ad1c0b3a28a9bba0094a44c6.tar UXP-91d9f5d658d646e1ad1c0b3a28a9bba0094a44c6.tar.gz UXP-91d9f5d658d646e1ad1c0b3a28a9bba0094a44c6.tar.lz UXP-91d9f5d658d646e1ad1c0b3a28a9bba0094a44c6.tar.xz UXP-91d9f5d658d646e1ad1c0b3a28a9bba0094a44c6.zip |
Make XDR decoding more robust.
Diffstat (limited to 'js/src/shell')
-rw-r--r-- | js/src/shell/js.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index 88d482a23..3f56981cd 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -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: |