[pulseaudio-discuss] [PATCH 3/6] tests: Assert granularity range in stripnul.c
Peter Meerwald-Stadler
pmeerw at pmeerw.net
Thu Aug 18 16:17:08 UTC 2016
CID 1138482
---
src/tests/stripnul.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/tests/stripnul.c b/src/tests/stripnul.c
index 75390bd..78bb040 100644
--- a/src/tests/stripnul.c
+++ b/src/tests/stripnul.c
@@ -34,6 +34,7 @@ int main(int argc, char *argv[]) {
pa_assert_se(argc >= 2);
pa_assert_se((granularity = (size_t) atoi(argv[1])) >= 1);
+ pa_assert(granularity <= 1024);
pa_assert_se((i = (argc >= 3) ? fopen(argv[2], "r") : stdin));
pa_assert_se((o = (argc >= 4) ? fopen(argv[3], "w") : stdout));
--
2.7.4
More information about the pulseaudio-discuss
mailing list