summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/plugin-oob.typ
blob: 4bc16212434252a6a6996a0218f53eee9ead489c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test Out Of Bound read/write in WebAssembly plugins communication.
// Ref: false

---
#let p = plugin("/files/plugin-oob.wasm")

// Error: 2-14 plugin tried to read out of bounds: pointer 0x40000000 is out of bounds for read of length 1
#p.read_oob()

---
#let p = plugin("/files/plugin-oob.wasm")

// Error: 2-27 plugin tried to write out of bounds: pointer 0x40000000 is out of bounds for write of length 3
#p.write_oob(bytes("xyz"))