[pulseaudio-commits] r1173 - /trunk/src/pulsecore/idxset.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Jul 31 14:53:22 PDT 2006


Author: lennart
Date: Mon Jul 31 23:53:21 2006
New Revision: 1173

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1173&root=pulseaudio&view=rev
Log:
fix bad memory access if a non-existing entry shall be removed from a pa_idxset by index

Modified:
    trunk/src/pulsecore/idxset.c

Modified: trunk/src/pulsecore/idxset.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/idxset.c?rev=1173&root=pulseaudio&r1=1172&r2=1173&view=diff
==============================================================================
--- trunk/src/pulsecore/idxset.c (original)
+++ trunk/src/pulsecore/idxset.c Mon Jul 31 23:53:21 2006
@@ -286,6 +286,9 @@
     if (!(a = array_index(s, idx)))
         return NULL;
 
+    if (!*a)
+        return NULL;
+
     data = (*a)->data;
     remove_entry(s, *a);
     




More information about the pulseaudio-commits mailing list