[pulseaudio-tickets] [PulseAudio] #878: module-jack-sink/module-jack-source segfault if no jack ports at all

PulseAudio trac-noreply at tango.0pointer.de
Thu Nov 25 04:05:44 PST 2010


#878: module-jack-sink/module-jack-source segfault if no jack ports at all
--------------------+-------------------------------------------------------
 Reporter:  petern  |       Owner:  lennart      
     Type:  defect  |      Status:  new          
Milestone:          |   Component:  module-jack-*
 Keywords:          |  
--------------------+-------------------------------------------------------
 module-jack-sink and module-jack-source dereference the result of
 jack_get_ports() without checking if it's null. jack_get_ports() will
 return null if there are no jack ports at all.

 The attached patch ensures that the value is valid before deferencing. It
 is not the most efficient way as it checks every time, but doing it this
 way requires minimal source changes, and it only happens on start up
 anyway.

-- 
Ticket URL: <http://pulseaudio.org/ticket/878>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list