[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 0/2] target-i386: Fix undefined behavior on bit shif
From: |
Eduardo Habkost |
Subject: |
[Qemu-devel] [PATCH 0/2] target-i386: Fix undefined behavior on bit shifts |
Date: |
Tue, 29 Sep 2015 17:34:21 -0300 |
This fixes two errors detected by clang:
target-i386/cpu.c:1494:15: runtime error: left shift of 1 by 31 places cannot
be represented in type 'int'
target-i386/translate.c:2423:26: runtime error: left shift of negative value
-8
Eduardo Habkost (2):
target-i386: Use 1UL for bit shift
target-i386: Don't left shift negative constant
target-i386/cpu.c | 2 +-
target-i386/translate.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
2.1.0
- [Qemu-devel] [PATCH 0/2] target-i386: Fix undefined behavior on bit shifts,
Eduardo Habkost <=
- [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Eduardo Habkost, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Paolo Bonzini, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Richard Henderson, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Paolo Bonzini, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Peter Maydell, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Paolo Bonzini, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Laszlo Ersek, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Paolo Bonzini, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Laszlo Ersek, 2015/10/08
- Re: [Qemu-devel] [PATCH 1/2] target-i386: Use 1UL for bit shift, Paolo Bonzini, 2015/10/08