[pulseaudio-commits] src/modules
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Thu Dec 17 21:36:13 PST 2015
src/modules/module-loopback.c | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit fc803b48830d9b800531c992464614f3e2c5ced7
Author: Georg Chini <georg at chini.tk>
Date: Wed Feb 25 19:43:24 2015 +0100
loopback: Validate the rate parameter
diff --git a/src/modules/module-loopback.c b/src/modules/module-loopback.c
index 0af3937..37bf7b1 100644
--- a/src/modules/module-loopback.c
+++ b/src/modules/module-loopback.c
@@ -799,6 +799,11 @@ int pa__init(pa_module *m) {
goto fail;
}
+ if (ss.rate < 4000 || ss.rate > PA_RATE_MAX) {
+ pa_log("Invalid rate specification, valid range is 4000 Hz to %i Hz", PA_RATE_MAX);
+ goto fail;
+ }
+
if (pa_modargs_get_value(ma, "format", NULL))
format_set = true;
More information about the pulseaudio-commits
mailing list