Re: [Xen-devel] [PATCH] x86/monitor: minor left-shift undefined behavior checks

2016-02-18 Thread Razvan Cojocaru
On 02/18/2016 12:53 PM, Corneliu ZUZU wrote: > This minor patch adds a range-check to avoid left-shift caused undefined > behavior. Also replaces '1 <<' w/ '1U <<' @ x86 monitor.h in an effort to > avoid > a future potential '1 << 31' that would cause a similar issue. > > Signed-off-by: Corneliu

[Xen-devel] [PATCH] x86/monitor: minor left-shift undefined behavior checks

2016-02-18 Thread Corneliu ZUZU
This minor patch adds a range-check to avoid left-shift caused undefined behavior. Also replaces '1 <<' w/ '1U <<' @ x86 monitor.h in an effort to avoid a future potential '1 << 31' that would cause a similar issue. Signed-off-by: Corneliu ZUZU --- xen/arch/x86/monitor.c