From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42209) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxHtj-0003Kk-JI for qemu-devel@nongnu.org; Wed, 18 Jun 2014 11:35:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxHte-0003bq-Ox for qemu-devel@nongnu.org; Wed, 18 Jun 2014 11:35:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxHte-0003bc-Gr for qemu-devel@nongnu.org; Wed, 18 Jun 2014 11:35:34 -0400 Message-ID: <53A1B1C1.2020703@redhat.com> Date: Wed, 18 Jun 2014 09:35:29 -0600 From: Eric Blake MIME-Version: 1.0 References: <0d9b1e22db2b42ac007b4e0e5388b4dafaa18e2a.1403103678.git.maria.k@catit.be> In-Reply-To: <0d9b1e22db2b42ac007b4e0e5388b4dafaa18e2a.1403103678.git.maria.k@catit.be> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0CFgnfdmIXepVq28lIiJ2XflUEvtmCXu4" Subject: Re: [Qemu-devel] [RFC 2/3] image-fuzzer: Initial generator of qcow2 fuzzed images List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Maria Kustova , qemu-devel@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, Maria Kustova , stefanha@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0CFgnfdmIXepVq28lIiJ2XflUEvtmCXu4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/18/2014 09:29 AM, Maria Kustova wrote: > Qcow2 image generator is a python package providing create_image(img_pa= th) > method required by the test runner. > It generates files containing fuzzed qcow2 image headers. Files are ran= domly > variable not only in fuzzed fields but in valid structure elements like= image > and cluster size. >=20 > Signed-off-by: Maria Kustova > --- > tests/image-fuzzer/qcow2/__init__.py | 1 + > tests/image-fuzzer/qcow2/fuzz.py | 271 +++++++++++++++++++++++++++= ++++++++ > tests/image-fuzzer/qcow2/layout.py | 125 ++++++++++++++++ > 3 files changed, 397 insertions(+) > create mode 100644 tests/image-fuzzer/qcow2/__init__.py > create mode 100644 tests/image-fuzzer/qcow2/fuzz.py > create mode 100644 tests/image-fuzzer/qcow2/layout.py >=20 > diff --git a/tests/image-fuzzer/qcow2/__init__.py b/tests/image-fuzzer/= qcow2/__init__.py > new file mode 100644 > index 0000000..e2ebe19 > --- /dev/null > +++ b/tests/image-fuzzer/qcow2/__init__.py > @@ -0,0 +1 @@ > +from layout import create_image > diff --git a/tests/image-fuzzer/qcow2/fuzz.py b/tests/image-fuzzer/qcow= 2/fuzz.py > new file mode 100644 > index 0000000..214dd7c > --- /dev/null > +++ b/tests/image-fuzzer/qcow2/fuzz.py > @@ -0,0 +1,271 @@ > +# Fuzzing functions for qcow2 fields > +# > +# Copyright (C) 2014 Maria Kustova > +# > +# This program is free software: you can redistribute it and/or modify= > +# it under the terms of the GNU General Public License as published by= > +# the Free Software Foundation, either version 3 of the License, or > +# (at your option) any later version. Won't work. Qemu HAS to ship as GPLv2 because it contains some GPLv2-only code; GPLv3+ is incompatible with GPLv2. You'll need to relax your license (GPLv2+ is ideal, but anything even looser, such as LGPLv2+ or BSD also works). --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --0CFgnfdmIXepVq28lIiJ2XflUEvtmCXu4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJTobHBAAoJEKeha0olJ0NqtIsH/1M9wAFCoRg3efrEMr43kuQY 0mx09La0NWqTyR/1d9/xaqyMOYvlY0RUa5bMhmb5jAAjIpwNDt4IMef7zjxv3CGr VV6k/TuQWiVHUPshk1X76/yrlIObzaj/VR/PK/FGpXczK9j/2yIUO99DnGM6Fi6i L3Ot+XScAO0QkCSnebhPaSWljf+q+T4HM4uLortGL7TuiNU5B+CBT7y2oAvNAe9A 0SqTgokjAqmINCXpKFu8wfcjOwOX60DZ4e9IyDXQl0SqtiQ6tSYYILWW82HNKbIe 53ItxH6imrEs4FlSzYwofLfhk8Ye2iaJMZuOTGwPOk4ApBi9BlS0hEbrZrmq9KM= =abe5 -----END PGP SIGNATURE----- --0CFgnfdmIXepVq28lIiJ2XflUEvtmCXu4--