graphic: 0.951 assembly: 0.943 instruction: 0.941 device: 0.932 boot: 0.929 semantic: 0.927 KVM: 0.897 socket: 0.896 mistranslation: 0.885 other: 0.883 vnc: 0.873 network: 0.848 qemu-img: crash on check of an image with large value in the 'size' header field The qemu-img crashes on the next command: qemu-img check test_image 'test_image' can be found in the attachment. It's a fuzzed test image with the qcow2 image header only. Suppositional cause of the failure is the value of 'size' header field set to maximum uint_64 value. System information: qemu.git: 6baa963f4dcc2118 Host: Linux 3.14.7-200.fc20.x86_64 #1 SMP Wed Jun 11 22:38:05 UTC 2014 x86_64 GNU/Linux The bug description missed qemu-img error: (process:12283): GLib-ERROR **: gmem.c:110: failed to allocate 18446744059294601304 bytes On Thu, Jun 19, 2014 at 07:19:55PM -0000, Maria Kustova wrote: > The bug description missed qemu-img error: > > (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 Am 24.06.2014 um 15:19 hat M.Kustova geschrieben: > On Mon, Jun 23, 2014 at 12:02 PM, Stefan Hajnoczi