mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-02 06:46:36 -04:00
Memory Safety: Medium Two issues in the LV2 filter-graph plugin: 1. uri_table_map(): realloc() result was assigned directly to table->data, losing the original pointer on failure (memory leak) and causing a NULL pointer dereference on the next access. Also the subsequent strdup() had no NULL check. Fixed by using a temporary pointer for realloc and checking strdup's return. 2. lv2_state_retrieve(): realloc() of sd->tmp was used without a NULL check, so a failed allocation would cause sd->tmp to become NULL and be immediately passed to spa_json_parse_stringn(). Fixed by checking the realloc result before assignment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| examples | ||
| include | ||
| include-private/spa-private | ||
| lib | ||
| plugins | ||
| tests | ||
| tools | ||
| meson.build | ||