#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 _______________________________________________ pulseaudio-tickets mailing list pulseaudio-tickets@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets