OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5447089
)
fuzz: fix wrong index in clear_bits
author
Qiuhao Li
<Qiuhao.Li@outlook.com>
Thu, 28 Jan 2021 03:59:28 +0000
(11:59 +0800)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Mon, 8 Feb 2021 13:43:54 +0000
(14:43 +0100)
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>
scripts/oss-fuzz/minimize_qtest_trace.py
patch
|
blob
|
history
diff --git
a/scripts/oss-fuzz/minimize_qtest_trace.py
b/scripts/oss-fuzz/minimize_qtest_trace.py
index
4cba96d
..
2082576
100755
(executable)
--- a/
scripts/oss-fuzz/minimize_qtest_trace.py
+++ b/
scripts/oss-fuzz/minimize_qtest_trace.py
@@
-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,