pipewire/src/tools
Wim Taymans 508407b350 security: fix missing malloc/realloc NULL checks in pw-dot
Memory Safety: High

In dot_data_init(), the return value of malloc() was not checked before
dereferencing, causing a NULL pointer dereference if allocation fails.

In dot_data_ensure_max_size(), the return value of realloc() was
assigned directly to dd->data without checking for NULL, which both
loses the original pointer (memory leak) and causes a NULL pointer
dereference on subsequent use.

Add NULL checks for both cases. For realloc, use a temporary variable
to preserve the original pointer on failure.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-23 16:58:06 +02:00
..
dfffile.c pw-cat: fix DSD file reading 2025-09-25 13:56:51 +02:00
dfffile.h pw-cat: fix DSD file reading 2025-09-25 13:56:51 +02:00
dsffile.c pw-cat: fix DSD file reading 2025-09-25 13:56:51 +02:00
dsffile.h pw-cat: fix DSD file reading 2025-09-25 13:56:51 +02:00
meson.build tools: add pw-audioconvert 2026-04-16 12:14:21 +02:00
midiclip.c tools: fix compilation on alpine 2025-08-29 17:59:00 +02:00
midiclip.h tools: add midi clip support 2025-08-29 17:34:34 +02:00
midievent.c tools: debug utility messages better 2025-08-29 17:00:06 +02:00
midievent.h tools: add guards around header include 2025-08-29 17:00:41 +02:00
midifile.c tools: fix realloc failure handling in midifile ensure_buffer 2026-04-17 10:04:35 +08:00
midifile.h tools: move midievent to separate file 2025-08-28 18:05:36 +02:00
pw-audioconvert.c tools: add pw-audioconvert 2026-04-16 12:14:21 +02:00
pw-avb-virtual.c tools: add pw-avb-virtual for virtual AVB graph nodes 2026-04-09 07:43:19 +00:00
pw-cat.c pw-cat: Fix waveX format endian assign 2026-04-16 13:54:24 +02:00
pw-cli.c core: use %u format specifier for uint32_t IDs 2026-04-16 08:54:15 +00:00
pw-config.c tools: port various tools to the new json-builder 2026-02-26 10:51:17 +01:00
pw-container.c protocol: improve manager socket handling 2025-01-29 12:59:45 +01:00
pw-dot.c security: fix missing malloc/realloc NULL checks in pw-dot 2026-04-23 16:58:06 +02:00
pw-dump.c tools: connect to the manager socket by default 2026-04-13 07:39:45 +00:00
pw-link.c tools: connect to the manager socket by default 2026-04-13 07:39:45 +00:00
pw-loopback.c tools: connect to the manager socket by default 2026-04-13 07:39:45 +00:00
pw-metadata.c tools: connect to the manager socket by default 2026-04-13 07:39:45 +00:00
pw-mididump.c tools: connect to the manager socket by default 2026-04-13 07:39:45 +00:00
pw-mon.c tools: connect to the manager socket by default 2026-04-13 07:39:45 +00:00
pw-profiler.c tools: connect to the manager socket by default 2026-04-13 07:39:45 +00:00
pw-reserve.c tools: improve indentation 2024-02-09 10:24:34 +01:00
pw-top.c pw-top: use spa_strbuf to create status bar 2026-04-23 16:29:16 +02:00
reserve.c tools: fix some missing free/close 2025-06-14 15:21:29 +03:00
reserve.h pw-reserve: require valid name + check rd_reserve_new errors 2023-11-28 10:26:43 +00:00