[pulseaudio-commits] r2537 - /trunk/src/pulse/introspect.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Jun 16 11:59:20 PDT 2008


Author: lennart
Date: Mon Jun 16 20:59:20 2008
New Revision: 2537

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2537&root=pulseaudio&view=rev
Log:
check for packet size on server info data

Modified:
    trunk/src/pulse/introspect.c

Modified: trunk/src/pulse/introspect.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/introspect.c?rev=2537&root=pulseaudio&r1=2536&r2=2537&view=diff
==============================================================================
--- trunk/src/pulse/introspect.c (original)
+++ trunk/src/pulse/introspect.c Mon Jun 16 20:59:20 2008
@@ -106,7 +106,8 @@
                pa_tagstruct_get_sample_spec(t, &i.sample_spec) < 0 ||
                pa_tagstruct_gets(t, &i.default_sink_name) < 0 ||
                pa_tagstruct_gets(t, &i.default_source_name) < 0 ||
-               pa_tagstruct_getu32(t, &i.cookie) < 0) {
+               pa_tagstruct_getu32(t, &i.cookie) < 0 ||
+               !pa_tagstruct_eof(t)) {
 
         pa_context_fail(o->context, PA_ERR_PROTOCOL);
         goto finish;




More information about the pulseaudio-commits mailing list