mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-27 06:46:48 -04:00
Memory Safety: High In descriptor_load(), the initial calloc for the descriptor struct, the strdup for the label, and four calloc calls for port arrays (input, output, control, notify) all lacked NULL checks. If any allocation fails under memory pressure, the code proceeds to dereference NULL pointers when populating the port arrays, causing a crash. Add NULL checks after all allocation calls, using the existing descriptor_unref cleanup path which already handles freeing partially initialized descriptors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| include-private/spa-private | ||
| lib | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||