Received: from eggs.gnu.org ([2001:4830:134:3::10]:37398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyzDN-0000LR-2l for qemu-devel@nongnu.org; Mon, 23 Jun 2014 04:03:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WyzDH-000728-L0 for qemu-devel@nongnu.org; Mon, 23 Jun 2014 04:02:57 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:37440) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WyzDH-00071u-Ey for qemu-devel@nongnu.org; Mon, 23 Jun 2014 04:02:51 -0400 Received: by mail-wi0-f173.google.com with SMTP id cc10so3602033wib.0 for ; Mon, 23 Jun 2014 01:02:50 -0700 (PDT) Date: Mon, 23 Jun 2014 16:02:38 +0800 From: Stefan Hajnoczi Message-ID: <20140623080238.GC13485@stefanha-thinkpad.redhat.com> References: <20140619191312.10674.6213.malonedeb@soybean.canonical.com> <20140619191955.7240.23518.malone@chaenomeles.canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hOcCNbCCxyk/YU74" Content-Disposition: inline In-Reply-To: <20140619191955.7240.23518.malone@chaenomeles.canonical.com> Subject: Re: [Qemu-devel] [Bug 1332297] Re: qemu-img: crash on check of an image with large value in the 'size' header field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 1332297 <1332297@bugs.launchpad.net> Cc: kwolf@redhat.com, Maria Kustova , qemu-devel@nongnu.org --hOcCNbCCxyk/YU74 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 19, 2014 at 07:19:55PM -0000, Maria Kustova wrote: > The bug description missed qemu-img error: >=20 > (process:12283): GLib-ERROR **: gmem.c:110: failed to allocate > 18446744059294601304 bytes Thanks, there has been recent work by Kevin Wolf to handle memory allocation failures gracefully without terminating QEMU. This sounds like a candidate for g_try_malloc() and friends. Does the following patch series solve the problem? https://lists.gnu.org/archive/html/qemu-devel/2014-06/msg01275.html Stefan --hOcCNbCCxyk/YU74 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJTp98eAAoJEJykq7OBq3PIBxwH/1FbAeQPaJ2xgYH73ND6ofCc 7MT+MWbpOBavYOoTEtkXZfP8/BlUz5ez+WlWvkeHc9ofzL3u/uje/x2arXsiRyvO x78RV4HmB+s9WNAKEdrpb7s/nqVNNQRXCMaOYzn9xVlstKeGgGyQkz1oTPRnpsrh /qv7UDL9i4C+Hbge0vP9w2NSWbqXntasHPf2AsRnX4Na6hf/mFaXAG6p6TZFCrxf cnJmiMRYg1nMBy4Juy/p3nodSf6FOs2iouigjmBjg2Q08toiZu94PLgn3GKCjjzS jB+paD/qKsQsYhBFupaU1nb9q1EVA7R03km4ITMsrBIgwMhGvXrywNd+UXoERH8= =Hho1 -----END PGP SIGNATURE----- --hOcCNbCCxyk/YU74--