From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50798) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZF2JM-00088U-NC for qemu-devel@nongnu.org; Tue, 14 Jul 2015 11:40:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZF2JL-00050Q-Vf for qemu-devel@nongnu.org; Tue, 14 Jul 2015 11:40:00 -0400 Message-ID: <55A52405.8070008@redhat.com> Date: Tue, 14 Jul 2015 11:00:21 -0400 From: John Snow MIME-Version: 1.0 References: <1436815589-19194-1-git-send-email-jsnow@redhat.com> <55A41474.8000004@redhat.com> <55A4C890.70402@redhat.com> In-Reply-To: <55A4C890.70402@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] ide: coverity touchups List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , Peter Maydell Cc: QEMU Trivial , Michael Tokarev , QEMU Developers , Qemu-block On 07/14/2015 04:30 AM, Paolo Bonzini wrote: > > > On 13/07/2015 21:41, John Snow wrote: >>>>>> s->ports should never exceed 32, but coverity doesn't know that. >>>>>> ncq_tfs->sector_count should also never exceed 64K. >>>> >>>> Personally I tend to mark that kind of thing as a false >>>> positive in the coverity UI and move on... >>>> >>>> -- PMM >>>> >> Either way; Paolo pinged me about the NCQ one so I figured I'd just do it. > > Yeah, neither is particularly optimal. Every now and then (a couple > years, say) you do have to re-evaluate false positives, so it's better > to fix them if possible. On the other hand the code is uglier. > > Let's ignore these in Coverity---with a triaging comment there about why > they are false positives. > > Paolo > Alright, I'll follow your lead on this and just adjust the Coverity triaging comments. --js