From def91db3fe955168c82038ac2ee39783e81a2af0 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 15 Dec 2018 15:17:13 +0100 Subject: prog, pkg/csource: more readable serialization for strings Always serialize strings in readable format (non-hex). Serialize binary data in readable format in more cases. Fixes #792 --- sys/test/exec.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/test/exec.txt') diff --git a/sys/test/exec.txt b/sys/test/exec.txt index 83da4708d..80180ca14 100644 --- a/sys/test/exec.txt +++ b/sys/test/exec.txt @@ -3,7 +3,7 @@ syz_mmap(addr vma, len len[addr]) syz_errno(v int32) -syz_compare(want ptr[in, string], want_len len[want], got ptr[in, compare_data], got_len len[got]) +syz_compare(want ptr[in, string], want_len bytesize[want], got ptr[in, compare_data], got_len bytesize[got]) compare_data [ align0 align0 @@ -11,6 +11,9 @@ compare_data [ bf1 syz_bf_struct1 bf2 syz_bf_struct2 bf3 syz_bf_struct3 + str string + blob array[int8] + arr16be array[int16be] ] [varlen] align0 { -- cgit mrf-deployment