Skip to content

Commit

Permalink
fuzz: fix wrong index in clear_bits
Browse files Browse the repository at this point in the history
Signed-off-by: Qiuhao Li <Qiuhao.Li@outlook.com>
Message-Id: <SYCPR01MB3502E9F6EB06DEDCD484F738FCBA9@SYCPR01MB3502.ausprd01.prod.outlook.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
QiuhaoLi authored and bonzini committed Feb 8, 2021
1 parent 5447089 commit 487a1d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/oss-fuzz/minimize_qtest_trace.py
Expand Up @@ -261,7 +261,7 @@ def clear_bits(newtrace, outpath):
data_try = hex(int("".join(data_bin_list), 2))
# It seems qtest only accepts padded hex-values.
if len(data_try) % 2 == 1:
data_try = data_try[:2] + "0" + data_try[2:-1]
data_try = data_try[:2] + "0" + data_try[2:]

newtrace[i] = "{prefix} {data_try}\n".format(
prefix=prefix,
Expand Down

0 comments on commit 487a1d1

Please sign in to comment.