Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[interpreter] (memory 65536) aborts the interpreter with an uncaught SizeOverflow

Aperta
#2,288 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
wasm
Ambito
backend

Direzione di ricerca

The issue identifies the validator bound and Memory.valid_size as the relevant code; find those definitions in the reference interpreter and trace how allocation failures become instantiation failures. Start by reproducing the provided module and assertion. Done when a memory of 65,536 pages no longer aborts the script and the test reports the expected result or a handled instantiation failure.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

(module
  (memory 65536)
  (func (export "size") (result i32) (memory.size)))
(assert_return (invoke "size") (i32.const 65536))
uncaught exception Wasm.Memory.SizeOverflow

The validator allows 2^16 pages for an i32 memory (0x1_0000L), but Memory.valid_size allows at most 0xffffL, so allocating a valid memory raises SizeOverflow, which isn't caught and aborts the whole script.

Allocation may fail for resource reasons (#1869), but this is an off-by-one bound, and it fails by aborting rather than as an instantiation failure.

Tested at 340650f.

Lingua principale
WebAssembly
Stelle
3.5k
Fork
540
Merge medio
1g 4h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di WebAssembly/spec

Tutte le issue di WebAssembly/spec

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.