Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Make fuzz test runnable again :)
[apps/agl-service-can-low-level.git]
/
tests
/
test_decode1.c
diff --git
a/tests/test_decode1.c
b/tests/test_decode1.c
index
def45a6
..
b46d0d5
100644
(file)
--- a/
tests/test_decode1.c
+++ b/
tests/test_decode1.c
@@
-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))
printf("Parsing failed.\n");
if (!print_person(&stream))
printf("Parsing failed.\n");