mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-03 06:47:04 -04:00
security: fix crash and overflow bugs in network-facing modules
module-filter-chain: fix NULL pointer dereference when pw_stream_dequeue_buffer returns NULL and out->requested is accessed outside the NULL check. module-zeroconf-discover: add NULL checks for name, type, host_name, address, and port from mDNS lookups that could be missing in malformed announcements. module-raop-sink: cap net.mtu to 9000 to prevent stack overflow via VLA uint32_t out[8 + mtu]. module-rtp-sap: fix buffer over-read in SDP "i=" line parsing that read past a self-inserted null terminator. Also fix fd leak when fd is 0 (fd > 0 should be fd >= 0). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
c551408ec2
commit
4b64b81d21
4 changed files with 28 additions and 17 deletions
|
|
@ -1902,7 +1902,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
|
|||
copy_props(impl, props, "sess.ts-refclk");
|
||||
copy_props(impl, props, "sess.ts-direct");
|
||||
|
||||
impl->mtu = pw_properties_get_uint32(impl->props, "net.mtu", 1448);
|
||||
impl->mtu = SPA_MIN(pw_properties_get_uint32(impl->props, "net.mtu", 1448), 9000u);
|
||||
impl->sync_period = impl->rate / (impl->mtu / impl->stride);
|
||||
impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
|
||||
if (impl->core == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue