[LTP] [PATCH 3/5] KVM: Fix infinite loop in ptr2hex()

Martin Doucha mdoucha@suse.cz
Wed Apr 26 10:09:41 CEST 2023


On 26. 04. 23 9:57, Cyril Hrubis wrote:
> Hi!
>> Contrary to the C standard, (x >> 64) is equivalent to (x >> 0) on x86.
> 
> As far as I can tell right shift larger than the left operand size are
> undefined, at least in C99.
> 
> Other than that the patch looks good.

You're right, sorry. Should I send a v2 with fixed commit message?

-- 
Martin Doucha   mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic



More information about the ltp mailing list