Received: from eggs.gnu.org ([2001:4830:134:3::10]:48098) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2zLS-0005xH-Du for qemu-devel@nongnu.org; Sun, 29 Nov 2015 05:36:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2zLN-0007jy-ED for qemu-devel@nongnu.org; Sun, 29 Nov 2015 05:36:38 -0500 Message-ID: <565AD526.5040108@msgid.tls.msk.ru> Date: Sun, 29 Nov 2015 13:36:22 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1448485417-8196-1-git-send-email-jsnow@redhat.com> In-Reply-To: <1448485417-8196-1-git-send-email-jsnow@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] util/id: fully allocate names table List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, jcody@redhat.com 26.11.2015 00:03, John Snow wrote: > Trivial: this array should be allocated to have ID_MAX entries always. > Otherwise if someone were to forget to expand this table, the assertion > in the id generator won't actually trigger; it will read junk data. Applied to -trivial as a bugfix, with a trivial commit description cleanup, removing this part: > v2: Fix the range assertion, too. Compare against the known actual size > of the table instead of what it "should" be. Thanks! /mjt