On 2/18/21 10:12 PM, Alexander Bulekov wrote: > This patch serves as an example of a file generated with the > ./scripts/oss-fuzz/output_reproducer.py script: > The source file in this patch was generated like this: > > $ wget https://paste.debian.net/plain/118513 -O /tmp/trace > $ export QEMU_ARGS="-nographic -machine accel=qtest -m 512M \ > -nodefaults -device sdhci-pci,sd-spec-version=3 -drive \ > if=sd,index=0,file=null-co://,format=raw,id=mydrive \ > -device sd-card,drive=mydrive -qtest stdio" > $ export QEMU_PATH=./qemu-system-i386 > $ ./scripts/oss-fuzz/output_reproducer.py \ > -owner "Alexander Bulekov <alx...@bu.edu>" /tmp/trace | \ > clang-format -style="{BasedOnStyle: llvm, IndentWidth: 4, \ > ColumnLimit: 90, BreakBeforeBraces: Linux}" > ../tests/qtest/fuzz-sdhci.c > > Signed-off-by: Alexander Bulekov <alx...@bu.edu> > --- > tests/qtest/fuzz-sdhci.c | 90 ++++++++++++++++++++++++++++++++++++++++ > tests/qtest/meson.build | 2 + > 2 files changed, 92 insertions(+) > create mode 100644 tests/qtest/fuzz-sdhci.c ...
> diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build > index c83bc211b6..97caf84443 100644 > --- a/tests/qtest/meson.build > +++ b/tests/qtest/meson.build > @@ -56,6 +56,8 @@ qtests_i386 = \ > 'rtc-test', > 'i440fx-test', > 'fuzz-test', > + 'fuzz-sdhci', > + 'sdhci-test', This line ^ belongs to the next patch. > 'fw_cfg-test', > 'device-plug-test', > 'drive_del-test', >