[PATCH] D60289: [libFuzzer] Another follow up fix for Data Flow scripts in Py3.
Max Moroz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 15:53:02 PDT 2019
Dor1s created this revision.
Herald added subscribers: llvm-commits, Sanitizers, delcypher.
Herald added projects: LLVM, Sanitizers.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D60289
Files:
lib/fuzzer/scripts/merge_data_flow.py
Index: lib/fuzzer/scripts/merge_data_flow.py
===================================================================
--- lib/fuzzer/scripts/merge_data_flow.py
+++ lib/fuzzer/scripts/merge_data_flow.py
@@ -18,7 +18,7 @@
res = array('b')
for i in range(0, len(a)):
res.append(ord('1' if a[i] == '1' or b[i] == '1' else '0'))
- return res.tostring()
+ return res.tostring().decode('utf-8')
def main(argv):
D = {}
@@ -29,7 +29,11 @@
else:
D[F] = BV;
for F in D.keys():
- print("%s %s" % (F, str(D[F])))
+ if isinstance(D[F], str):
+ value = D[F]
+ else:
+ value = D[F].decode('utf-8')
+ print("%s %s" % (F, value))
if __name__ == '__main__':
main(sys.argv)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60289.193797.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190404/6464256b/attachment.bin>
More information about the llvm-commits
mailing list