Skip to content

[spectec] Wasm 1.0: Missing bounds check on successful store rules #2222

Description

@lzy0505

The WebAssembly Specification Release 1.0 PDF Section 4.4.4:

ea = i + memarg.offset
ea + |t|/8 ≤ |S.mems[F.module.memaddrs[0]].data|    // ordinary store

ea = i + memarg.offset
ea + N/8 ≤ |S.mems[F.module.memaddrs[0]].data|      // packed store

The current spectec rules Step/store-num-val and Step/store-pack-val omit those premises.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions