All of
 help / color / mirror / Atom feed
From: Alexander Bulekov <>
Cc: Alexander Bulekov <>,
	Paolo Bonzini <>, Bandan Das <>,
	Stefan Hajnoczi <>,
	Thomas Huth <>
Subject: [PATCH] oss-fuzz: ensure base_copy is a generic-fuzzer
Date: Wed, 20 Jul 2022 14:09:46 -0400	[thread overview]
Message-ID: <> (raw)

Depending on how the target list is sorted in by qemu, the first target
(used as the base copy of the fuzzer, to which all others are linked)
might not be a generic-fuzzer. Since we are trying to only use
generic-fuzz, on oss-fuzz, fix that, to ensure the base copy is a

Signed-off-by: Alexander Bulekov <>
 scripts/oss-fuzz/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/oss-fuzz/ b/scripts/oss-fuzz/
index 2656a89aea..dade5abe2d 100755
--- a/scripts/oss-fuzz/
+++ b/scripts/oss-fuzz/
@@ -90,7 +90,7 @@ fi
 # Prepare a preinstalled tree
 make install DESTDIR=$DEST_DIR/qemu-bundle
-targets=$(./qemu-fuzz-i386 | awk '$1 ~ /\*/  {print $2}')
+targets=$(./qemu-fuzz-i386 | grep generic-fuzz | awk '$1 ~ /\*/  {print $2}')
 base_copy="$DEST_DIR/qemu-fuzz-i386-target-$(echo "$targets" | head -n 1)"
 cp "./qemu-fuzz-i386" "$base_copy"

             reply	other threads:[~2022-07-20 18:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-20 18:09 Alexander Bulekov [this message]
2022-07-21  9:45 ` [PATCH] oss-fuzz: ensure base_copy is a generic-fuzzer Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.