From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7D9E-0006OQ-26 for qemu-devel@nongnu.org; Mon, 22 Jun 2015 21:37:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7D99-0005z4-V2 for qemu-devel@nongnu.org; Mon, 22 Jun 2015 21:37:11 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:15704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7D99-0005wz-DF for qemu-devel@nongnu.org; Mon, 22 Jun 2015 21:37:07 -0400 Message-ID: <5588B837.3090305@huawei.com> Date: Tue, 23 Jun 2015 09:36:55 +0800 From: Gonglei MIME-Version: 1.0 References: <1433161230-29421-1-git-send-email-mst@redhat.com> <1433161230-29421-59-git-send-email-mst@redhat.com> <5585D6B0.3020803@redhat.com> In-Reply-To: <5585D6B0.3020803@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL v2 58/60] qdev: add 64bit properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , "Michael S. Tsirkin" , qemu-devel@nongnu.org Cc: Kevin Wolf , Peter Maydell , Peter Crosthwaite , Eduardo Habkost , Markus Armbruster , Gerd Hoffmann , Stefan Hajnoczi On 2015/6/21 5:10, Paolo Bonzini wrote: > > > On 01/06/2015 14:25, Michael S. Tsirkin wrote: >> +static uint64_t qdev_get_prop_mask64(Property *prop) >> +{ >> + assert(prop->info == &qdev_prop_bit); >> + return 0x1 << prop->bitnr; > > This needs to be 1ull. > Yes, and coverity spot it and some other OVERRUN problems. Regards, -Gonglei