/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
if (!JS::Evaluate(gCx, opts.setFileAndLine(__FILE__, __LINE__), srcBuf, &v) &&
!JS_IsExceptionPending(gCx)) { // A return value of `false` without a pending exception indicates // a timeout as triggered by the `timeout` shell function. return 1;
}
if (gCx->isThrowingOutOfMemory()) { // If the target is throwing out of memory, try to recover and indicate // to the fuzzer that we don't want to keep this sample as it usually // slows down execution.
gCx->recoverFromOutOfMemory(); return 1;
}
// Also make sure to reset this flag, as the fuzzing implementation might // use it to discard differential test results in the next run.
gCx->runtime()->hadOutOfMemory = false;
// The fuzzing module is required to handle any exceptions
CrashOnPendingException();
int32_t ret = 0; if (!JS::ToInt32(gCx, v, &ret)) {
MOZ_CRASH("Must return an int32 compatible return value!");
}
return ret;
}
¤ Dauer der Verarbeitung: 0.28 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.