|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH] Fix subtle integer overflow bug in memory API |
Date: | Thu, 15 Sep 2011 09:38:19 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 |
On 09/15/2011 04:34 AM, David Gibson wrote:
explicit "if (a + b)< a" tests in some places.
Please wrap these in a macro, since the addition has to be done in an unsigned type. Otherwise overflow is undefined.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |