Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/src/jit-test/tests/wasm/regress/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 993 B image not shown  

Quelle  bug2042279.js

  Sprache: JAVA
 

// |jit-test| skip-if: !wasmStreamingEnabled()

// Code-section header declares size=0x0a (10) but only 3 content bytes follow
// before the stream ends. Before the fix, the helper thread was stuck in
// StreamingDecoder::waitForBytes() and the process would hang at shutdown.
var bad = new Uint8Array([
  0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00,  // preamble
  0x01, 0x04, 0x01, 0x60, 0x00, 0x00,              // type section: () -> ()
  0x03, 0x02, 0x01, 0x00,                          // function section
  0x0a, 0x0a,                                      // code section, declared size = 10
  0x01, 0x08, 0x00                                 // count=1, body0 size=8, locals=0 ... EOF
]);

var caught = false;
WebAssembly.compileStreaming(bad).then(
  m => { throw "should have rejected"; },
  e => { assertErrorMessage(() => { throw e; }, WebAssembly.CompileError, /wasm validation error.*expected function body count/); caught = true; });
drainJobQueue();
assertEq(caught, true);

Messung V0.5 in Prozent
C=53 H=100 G=80

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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 und die Messung sind noch experimentell.