[pulseaudio-commits] r1445 - /trunk/src/pulsecore/pstream.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed May 23 09:24:55 PDT 2007


Author: lennart
Date: Wed May 23 18:24:54 2007
New Revision: 1445

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1445&root=3Dpulseaudio&vi=
ew=3Drev
Log:
fix a DoS vulnerability (re #67), originally identified by Luigi Auriemma

Modified:
    trunk/src/pulsecore/pstream.c

Modified: trunk/src/pulsecore/pstream.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/pstream.c?r=
ev=3D1445&root=3Dpulseaudio&r1=3D1444&r2=3D1445&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- trunk/src/pulsecore/pstream.c (original)
+++ trunk/src/pulsecore/pstream.c Wed May 23 18:24:54 2007
@@ -632,7 +632,7 @@
 =

         flags =3D ntohl(p->read.descriptor[PA_PSTREAM_DESCRIPTOR_FLAGS]);
 =

-        if (!p->import && (flags & PA_FLAG_SHMMASK) !=3D 0) {
+        if (!p->use_shm && (flags & PA_FLAG_SHMMASK) !=3D 0) {
             pa_log_warn("Recieved SHM frame on a socket where SHM is disab=
led.");
             return -1;
         }




More information about the pulseaudio-commits mailing list