mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-29 06:46:38 -04:00
Memory Safety: Medium In pw_split_strv(), the return values of strndup() and strdup() were passed directly to pw_array_add_ptr() without checking for NULL. If memory allocation fails, NULL pointers would be stored in the string array and later dereferenced by callers iterating the result. The return value of pw_array_add_ptr() was also not checked, which could lead to silently dropped strings. Fix by checking both allocation and array insertion return values, and properly cleaning up all previously allocated strings on failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| daemon | ||
| examples | ||
| gst | ||
| modules | ||
| pipewire | ||
| tests | ||
| tools | ||
| meson.build | ||