projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
407a1b6
)
Fix another DoS vulnerability, also identified Luigi Auriemma (closes #67)
author
Lennart Poettering
<lennart@poettering.net>
Wed, 23 May 2007 16:29:18 +0000
(16:29 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 23 May 2007 16:29:18 +0000
(16:29 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1446
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/pulsecore/pstream.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/pstream.c
b/src/pulsecore/pstream.c
index
dbee776
..
897e429
100644
(file)
--- 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;
}