ubsan: wasm: shift is too large for 64-bit type 'bfd_vma'
authorAlan Modra <amodra@gmail.com>
Mon, 23 Dec 2019 07:28:09 +0000 (17:58 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 23 Dec 2019 07:28:09 +0000 (17:58 +1030)
commit27c1c4271a14cc2ebc27227212c19d4227ef212d
tree348440ee0822b82ccffa82ac55d004af21b54e35
parent09b0d8a75fa379eacf0d9d6b27320d025475b14d
ubsan: wasm: shift is too large for 64-bit type 'bfd_vma'

bfd/
* wasm-module.c (wasm_read_leb128): Don't allow oversize shifts.
Catch value overflow.  Sign extend only on terminating byte.
opcodes/
* wasm32-dis.c (wasm_read_leb128): Don't allow oversize shifts.
Catch value overflow.  Sign extend only on terminating byte.
bfd/ChangeLog
bfd/wasm-module.c
opcodes/ChangeLog
opcodes/wasm32-dis.c