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

@@ -19,6 +19,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;
if (!pb_decode(stream, AllTypes_fields, &alltypes))
return false;