HomePhabricator

[WebAssembly] Add validation to reloc section

Authored by ncw on Mar 5 2018, 5:32 AM.

Description

[WebAssembly] Add validation to reloc section

We now check relocations offsets are within range, and the relocation
index is valid.

Also updated tests which contained invalid Wasm files that were
previously not checked.

Differential Revision: https://reviews.llvm.org/D43684

llvm-svn: 326697

Details

Committed
ncwMar 5 2018, 5:32 AM
Differential Revision
D43684: [WebAssembly] Add validation to reloc section
Parents
rGf20222a83c8f: [ARM][Asm] VMOVSRR and VMOVRRS need sequential S registers
Branches
Unknown
Tags
Unknown