Fix bug in alltypes test case that made fuzzing difficult.

This commit is contained in:
Petteri Aimonen
2014-05-17 20:28:33 +03:00
parent 5ef128616b
commit 9cf788de54
5 changed files with 7 additions and 0 deletions

View File

@@ -220,6 +220,7 @@ bool check_alltypes(pb_istream_t *stream, int mode)
/* Fill with garbage to better detect initialization errors */
memset(&alltypes, 0xAA, sizeof(alltypes));
alltypes.extensions = 0;
alltypes.req_int32.funcs.decode = &read_varint;
alltypes.req_int32.arg = (void*)-1001;