···11-(** Common utilities for fuzz tests. *)
22-33-let to_bytes buf =
44- let len = String.length buf in
55- let b = Bytes.create len in
66- Bytes.blit_string buf 0 b 0 len;
77- b
88-99-let truncate ?(max_len = 4096) buf =
1010- if String.length buf > max_len then String.sub buf 0 max_len else buf
1111-1212-let run () = ()