diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-17 14:26:39 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-17 14:32:23 +1030 |
commit | 62e6599087efba193e0156d89ee65fb74fc99cb2 (patch) | |
tree | e6316a78fdde602c597410a4dfa4b09815c6724a /cpu/bpf.cpu | |
parent | 45d735237b7edf282131d570a7a9f6aa9ee1bd9c (diff) | |
download | fsf-binutils-gdb-62e6599087efba193e0156d89ee65fb74fc99cb2.zip fsf-binutils-gdb-62e6599087efba193e0156d89ee65fb74fc99cb2.tar.gz fsf-binutils-gdb-62e6599087efba193e0156d89ee65fb74fc99cb2.tar.bz2 |
ubsan: bpf: left shift cannot be represented in type 'DI' (aka 'long')
cpu/
* bpf.cpu (f-imm64): Avoid signed overflow.
opcodes/
* bpf-ibld.c: Regenerate.
Diffstat (limited to 'cpu/bpf.cpu')
-rw-r--r-- | cpu/bpf.cpu | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu/bpf.cpu b/cpu/bpf.cpu index db2301c..d5a8eac 100644 --- a/cpu/bpf.cpu +++ b/cpu/bpf.cpu @@ -288,8 +288,8 @@ (set (ifield f-imm64-a) (and (ifield f-imm64) (const #xffffffff))))) (extract (sequence () (set (ifield f-imm64) - (or (sll DI (zext DI (ifield f-imm64-c)) (const 32)) - (zext DI (ifield f-imm64-a))))))) + (or (sll UDI (zext UDI (ifield f-imm64-c)) (const 32)) + (zext UDI (ifield f-imm64-a))))))) ;;; Operands |