Received: from eggs.gnu.org ([2001:4830:134:3::10]:34419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aUElP-0006s7-JM for qemu-devel@nongnu.org; Fri, 12 Feb 2016 09:32:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aUElO-0001AZ-Ls for qemu-devel@nongnu.org; Fri, 12 Feb 2016 09:32:03 -0500 Date: Fri, 12 Feb 2016 15:31:55 +0100 From: Kevin Wolf Message-ID: <20160212143155.GE4828@noname.redhat.com> References: <1454695953-14710-1-git-send-email-jsnow@redhat.com> <56B4FE80.3090202@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AqsLC8rIMeq19msA" Content-Disposition: inline In-Reply-To: <56B4FE80.3090202@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2] qemu-img: initialize MapEntry object List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: famz@redhat.com, John Snow , qemu-devel@nongnu.org, qemu-block@nongnu.org --AqsLC8rIMeq19msA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 05.02.2016 um 20:56 hat Eric Blake geschrieben: > On 02/05/2016 11:12 AM, John Snow wrote: > > Commit 16b0d555 introduced an issue where we are not initializing > > has_filename for the 'next' MapEntry object, which leads to interesting > > errors in Valgrind and Clang -fsanitize=3Dundefined both. >=20 > grammar: >=20 > errors in both Valgrind and Clang -fsanitize=3Dundefined. Fixed up. > >=20 > > Zero the stack object at allocation AND make sure the utility to > > populate the fields properly marks has_filename as false if applicable. > >=20 > > Signed-off-by: John Snow > > --- > > v2: Initialize with a compound literal as a future-proofing measure. > >=20 >=20 > Reviewed-by: Eric Blake Thanks, applied to the block branch. Kevin --AqsLC8rIMeq19msA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWvezbAAoJEH8JsnLIjy/WL58P/3CAPqIG+Mvqr8gbOYfr/r7t pW75qxtzO4GvLGJ1otHck48A/lBuOKbUrv3wLrjnyVYVeCQeK5R9s4nIwyXUDRjq 3LzNxzQG3arGasDXZNetP6Wuxg+ayabm9Mp2tuL745/m5AAS8s2+aVmITI/b3dsw kD75JRX+dPzRAjxU+AESYhCJkG0sywruuWl3ABY2iqh3hVPWrGZN4zta8+b0/8SH AQwilRsbunjde4LhQGdD57Z3nRoyVATVcb1V2owKt2i0WfqSJHwRSxsJP6+chE66 Jlis++FZygBfX4nrqYcvQrB5WHhTTV7dxsGlS64KIirMzJDa0qZJd8886pUOrXMy nMOz6bnjL+uaDTI2MfXQ52CkOivqVGeFqL9urzgd7dyxvMnoed/s0uS2DgMrvemM hXLn6iuZaCPCl28f0cAX4BGPTd4gjToV1fiPr+tC0qcFlhIW03NbE4J7nCMvtVG7 OKRo6EYIgXsiaOoWzFzWWQCtsZE+tPEgy5jCBjvGstkiWJSgO9ttSE7LQ4EEKYoM HPJTLKteImZUPoUylAPCu7a/oOchdOTzi5D8G2xDFN8qUOZeguUTak1OjPIi0cOS i9t8Z8OPIz8Lc0QpNCRx5h3x273HnH4m4M46NPE3w3p1uP73c3xUje7OUtk5Q858 3D8BpkJNDYfNIaaX8oYa =/LfQ -----END PGP SIGNATURE----- --AqsLC8rIMeq19msA--