Skip to content
Snippets Groups Projects
Commit 27c1c427 authored by Alan Modra's avatar Alan Modra
Browse files

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.
parent 09b0d8a7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment