diff options
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/pstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/pstream.c b/src/pulsecore/pstream.c index dbee7763..897e4295 100644 --- a/src/pulsecore/pstream.c +++ b/src/pulsecore/pstream.c @@ -662,7 +662,7 @@ static int do_read(pa_pstream *p) { length = ntohl(p->read.descriptor[PA_PSTREAM_DESCRIPTOR_LENGTH]); - if (length > FRAME_SIZE_MAX_ALLOW) { + if (length > FRAME_SIZE_MAX_ALLOW || length <= 0) { pa_log_warn("Recieved invalid frame size : %lu", (unsigned long) length); return -1; } |