mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-16 08:56:40 -05:00
fix a DoS vulnerability (re #67), originally identified by Luigi Auriemma
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1445 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
8e738ede9b
commit
407a1b6efe
1 changed files with 1 additions and 1 deletions
|
|
@ -632,7 +632,7 @@ static int do_read(pa_pstream *p) {
|
||||||
|
|
||||||
flags = ntohl(p->read.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS]);
|
flags = ntohl(p->read.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS]);
|
||||||
|
|
||||||
if (!p->import && (flags & PA_FLAG_SHMMASK) != 0) {
|
if (!p->use_shm && (flags & PA_FLAG_SHMMASK) != 0) {
|
||||||
pa_log_warn("Recieved SHM frame on a socket where SHM is disabled.");
|
pa_log_warn("Recieved SHM frame on a socket where SHM is disabled.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue