[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH 3/3] xbzrle.c: Avoid undefined behaviour with
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-trivial] [PATCH 3/3] xbzrle.c: Avoid undefined behaviour with signed arithmetic |
Date: |
Sun, 06 Apr 2014 18:15:17 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
28.03.2014 19:12, Peter Maydell wrote:
> Use unsigned types for doing bitwise arithmetic in the xzbrle
> calculations, to avoid undefined behaviour:
>
> xbzrle.c:99:49: runtime error: left shift of 72340172838076673
> by 7 places cannot be represented in type 'long'
Aplied to -trivial, thanks!
/mjt
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-trivial] [PATCH 3/3] xbzrle.c: Avoid undefined behaviour with signed arithmetic,
Michael Tokarev <=