diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 174987e4a..d75f1d215 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -879,7 +879,7 @@ int pa_parse_volume(const char *v, pa_volume_t *volume) { len = strlen(v); - if (len >= 64) + if (len <= 0 || len >= 64) return -1; memcpy(str, v, len + 1);