pipewire/src
Peter Hutterer 626d30e4bd map: fix free_list corruption when re-using removed ids
Re-using an id after removing it is a bug in the caller but there are
two cases where we corrupt the free list without warning:

Removing an object twice:

   id = pw_map_insert_new(object);
   pw_map_remove(map, id);
   pw_map_remove(map, id);

And inserting an element at an index previously removed:

   id = pw_map_insert_new(object);
   pw_map_remove(map, id);
   pw_map_insert_at(map, id, new_object);

The latter is arguably valid code, or at least it'll look like it's
valid code.

For both cases, check if the id to remove/insert at is a free item and
handle that accordingly.
2021-10-08 12:40:23 +10:00
..
daemon bluez5: add faststream quirks 2021-10-03 20:55:02 +03:00
examples Promote media-session to its own subdirectory 2021-09-22 08:53:08 +02:00
gst gst: add 30 seconds timeout 2021-09-16 10:05:58 +02:00
media-session fix codespell issues 2021-10-07 15:26:18 +00:00
modules filter-chain: fix incorrect codespell fix 2021-10-07 21:31:01 +02:00
pipewire map: fix free_list corruption when re-using removed ids 2021-10-08 12:40:23 +10:00
tests Remove remaining tabs from meson.build files 2021-09-30 00:08:27 +00:00
tools jack: add jack log topic 2021-10-03 08:52:27 +02:00
meson.build Promote media-session to its own subdirectory 2021-09-22 08:53:08 +02:00