Make fuzz test runnable again :)
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@971 e3a754e5-d11d-0410-8d38-ebb782a927b9
This commit is contained in:
@@ -63,7 +63,10 @@ bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
pb_istream_t stream = {&callback, stdin, SIZE_MAX};
|
/* Maximum size is specified to prevent infinite length messages from
|
||||||
|
* hanging this in the fuzz test.
|
||||||
|
*/
|
||||||
|
pb_istream_t stream = {&callback, stdin, 10000};
|
||||||
if (!print_person(&stream))
|
if (!print_person(&stream))
|
||||||
printf("Parsing failed.\n");
|
printf("Parsing failed.\n");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user