Received: from eggs.gnu.org ([2001:4830:134:3::10]:52609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biSC5-0000Pl-R1 for qemu-devel@nongnu.org; Fri, 09 Sep 2016 16:14:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biSC0-0001fs-Oi for qemu-devel@nongnu.org; Fri, 09 Sep 2016 16:14:36 -0400 References: <1473448442-29510-1-git-send-email-ashijeetacharya@gmail.com> From: Eric Blake Message-ID: <12a1caca-caa8-be7e-8edf-87054668725c@redhat.com> Date: Fri, 9 Sep 2016 15:14:30 -0500 MIME-Version: 1.0 In-Reply-To: <1473448442-29510-1-git-send-email-ashijeetacharya@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="H1ff6DAtX9p3e8CTmBIsgXeB3sg8AIxad" Subject: Re: [Qemu-devel] [PATCH] migrate: Fix bounds check for migration parameters in migration.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ashijeet Acharya , quintela@redhat.com Cc: amit.shah@redhat.com, dgilbert@redhat.com, qemu-devel@nongnu.org, qemu-stable This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --H1ff6DAtX9p3e8CTmBIsgXeB3sg8AIxad From: Eric Blake To: Ashijeet Acharya , quintela@redhat.com Cc: amit.shah@redhat.com, dgilbert@redhat.com, qemu-devel@nongnu.org, qemu-stable Message-ID: <12a1caca-caa8-be7e-8edf-87054668725c@redhat.com> Subject: Re: [Qemu-devel] [PATCH] migrate: Fix bounds check for migration parameters in migration.c References: <1473448442-29510-1-git-send-email-ashijeetacharya@gmail.com> In-Reply-To: <1473448442-29510-1-git-send-email-ashijeetacharya@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/09/2016 02:14 PM, Ashijeet Acharya wrote: > This patch fixes the out-of-bounds check migration parameters in > qmp_migrate_set_parameters() for cpu-throttle-initial and > cpu-throttle-increment by adding a return statement for both. > Due to the missing return statements, parmaters were getting set to s/parmaters/parameters/ > out-of-bounds values despite the error. >=20 > Signed-off-by: Ashijeet Acharya > --- > migration/migration.c | 2 ++ > 1 file changed, 2 insertions(+) Broken since their introduction in 2.5 via commit 1626fee. Reviewed-by: Eric Blake Probably worth backporting to stable branches. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --H1ff6DAtX9p3e8CTmBIsgXeB3sg8AIxad Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX0xgmAAoJEKeha0olJ0Nqwx4H/3Q2Re7lBX7O5xumxF/opHf6 /JNSRIz9KrCreGostaAxr05KZhvMPVCjhbsOdVMawDCsGSmVT+dSsrEj60VSv+Jl 1LlVP9SKLc42Y4JNle9CtUMtskfay9qdrAMVS9WM1Cw47L5JlhrTyyXjXMmSqmNh RH+AjoXXWW+qZoT9KEYPvW6pVvyuSIC6Jo+CPIeiGe9ASGK8H3ocT8OBBMVjRUR6 ZIPI/XNNbps0anwHmmigReUAmKrVV1DSOVN84z1RgPHSvhBravxELjUi694Fp2nR NEP2xXF1DE0jkYia5oj+tFy2W8VtFxGFKudUAFIGIYavpXr+l95yqgCsWLNAk4k= =9kn4 -----END PGP SIGNATURE----- --H1ff6DAtX9p3e8CTmBIsgXeB3sg8AIxad--