Lines Matching refs:msglen
65 static bool do_decode(const uint8_t *buffer, size_t msglen, size_t structsize, const pb_msgdesc_t *… in do_decode() argument
90 stream = pb_istream_from_buffer(buffer, msglen); in do_decode()
112 static bool do_stream_decode(const uint8_t *buffer, size_t msglen, size_t fail_after, size_t struct… in do_stream_decode() argument
121 flakystream_init(&stream, buffer, msglen, fail_after); in do_stream_decode()
160 bool do_callback_decode(const uint8_t *buffer, size_t msglen, bool assert_success) in do_callback_decode() argument
169 stream = pb_istream_from_buffer(buffer, msglen); in do_callback_decode()
198 void do_roundtrip(const uint8_t *buffer, size_t msglen, size_t structsize, const pb_msgdesc_t *msgt… in do_roundtrip() argument
229 pb_istream_t stream = pb_istream_from_buffer(buffer, msglen); in do_roundtrip()
364 static bool generate_base_message(uint8_t *buffer, size_t *msglen) in generate_base_message() argument
385 *msglen = stream.bytes_written; in generate_base_message()
396 size_t msglen; in run_iteration() local
401 if (generate_base_message(buffer, &msglen)) in run_iteration()
403 rand_protobuf_noise(buffer, g_bufsize, &msglen); in run_iteration()
406 do_roundtrips(buffer, msglen, true); in run_iteration()
414 msglen = rand_int(0, g_bufsize); in run_iteration()
417 do_roundtrips(buffer, msglen, false); in run_iteration()
448 size_t msglen; in main() local
453 msglen = fread(buffer, 1, g_bufsize, stdin); in main()
454 LLVMFuzzerTestOneInput(buffer, msglen); in main()