Re: [Qemu-devel] [PATCH] target-i386: fix clang sanitize warning

2015-10-27 Thread Peter Maydell
On 27 October 2015 at 14:24, wrote: > From: Marc-André Lureau > > When running vhost-user-test with clang compiled qemu with > --extra-cflags=-fsanitize=undefined, the following error is printed: > > qemu/target-i386/translate.c:2435:26: runtime error: left shift of negative > value -8 > > Acco

[Qemu-devel] [PATCH] target-i386: fix clang sanitize warning

2015-10-27 Thread marcandre . lureau
From: Marc-André Lureau When running vhost-user-test with clang compiled qemu with --extra-cflags=-fsanitize=undefined, the following error is printed: qemu/target-i386/translate.c:2435:26: runtime error: left shift of negative value -8 According to c99, this is undefined behaviour. (see also