Received: from eggs.gnu.org ([2001:4830:134:3::10]:42632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZriBk-0004OQ-5P for qemu-devel@nongnu.org; Thu, 29 Oct 2015 04:04:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZriBg-0002CL-4O for qemu-devel@nongnu.org; Thu, 29 Oct 2015 04:04:00 -0400 Message-ID: <5631D2EA.3060103@msgid.tls.msk.ru> Date: Thu, 29 Oct 2015 11:03:54 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1445263720-6765-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1445263720-6765-3-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] bt: fix use of uninitialized variable seqlen List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org 19.10.2015 17:08, Paolo Bonzini wrote: > sdp_svc_match, sdp_attr_match and sdp_svc_attr_match read the last > argument. The only sensible way to change the code is to make that last > argument "len" instead of "seqlen" which is the length of a subsequence > in the previous "if" branch. A fun case. At the very least, the original code is definitely wrong, so you're not adding a new bug :) Applied to -trivial, thank you! /mjt