Wim Taymans
aa29fefbd2
vban: limit the stream_name
...
The stream_name from the network is not 0 terminated so limit the
string to the max size.
2026-05-06 11:57:52 +02:00
Wim Taymans
8907d0860b
modules: loop_add_io with close=true owns the fd
...
We should not close the fd when loop_add_io with close=true fails
because the fd is already closed.
2026-05-06 11:57:51 +02:00
Wim Taymans
620b18e9d8
zeroconf: check for NULL before doing strdup
...
Reject zeroconf entries without name, type, domain or host_name.
2026-05-05 18:17:42 +02:00
Wim Taymans
593b5cf148
protocol-simple: close client_fd when client alloc fails
2026-05-05 17:19:06 +02:00
Wim Taymans
b9761926df
netjack2: go to the right error label
...
socket_failed is for when the socket fd failed, otherwise we need to do
cleanup.
2026-05-05 17:14:02 +02:00
Wim Taymans
c2bf8c920e
protocol-native: close fd and unset env in all cases
...
If we find the fd valid, we must attempt to close it.
Also unset the env variable when we read and processed it, even if
there was an error.
2026-05-05 17:09:12 +02:00
Wim Taymans
aa6fa6bdc3
modules: make sure we don't deref potential NULL
2026-05-05 16:39:27 +02:00
Wim Taymans
9124a09482
modules: handle allocation error of properties
2026-05-05 16:34:15 +02:00
Wim Taymans
f8a76d9f00
protocol-native: handle allocation failures
2026-05-05 16:26:25 +02:00
Wim Taymans
01b2af13c7
pulse-server: handle strdup error
2026-05-05 14:54:43 +02:00
Wim Taymans
899051169e
netjack2: handle property allocation failures
2026-05-05 14:51:43 +02:00
Wim Taymans
2ac7c81958
pipewire: handle allocation failures
...
And make sure we don't leak things in the error paths.
2026-05-05 14:44:39 +02:00
Wim Taymans
67e8da3390
modules: handle some allocation failures
2026-05-05 14:44:18 +02:00
Wim Taymans
3db8038652
modules: avoid useless props copy
...
We can use the properties we passed to the node.
2026-05-05 14:15:44 +02:00
Wim Taymans
9946f5ec77
modules: handle some more allocation errors
2026-05-05 14:14:52 +02:00
Wim Taymans
379b4a8747
introspect: handle strdup failures
...
Abort and clean up the dict copy when allocation fails.
2026-05-05 13:50:39 +02:00
Wim Taymans
dd695ee5a7
modules: handle allocation errors gracefully
2026-05-05 13:10:21 +02:00
Wim Taymans
96594d6716
plugins: handle some fd allocation errors
2026-05-05 11:36:45 +02:00
Wim Taymans
3ef2b77915
pipewire: fix some allocation errors
...
Also fix a string leak in the device error path.
2026-05-05 11:08:52 +02:00
Barnabás Pőcze
ccfb61efa4
treewide: make more file descriptors cloexec
...
Avoid file descriptor leakage into child processes by marking them `O_CLOEXEC`.
2026-05-04 19:48:41 +02:00
Wim Taymans
f91b98a812
stream: check buffer_id in reuse_buffer
2026-05-04 18:42:52 +02:00
Wim Taymans
6539c2bf8c
fix some allocation failures
2026-05-04 14:18:31 +02:00
Wim Taymans
8cf1164eb6
midifile: reject midi files with invalid values
...
>64 tracks will overflow the track array and a division of 0 will cause
a division by zero later.
2026-05-04 14:13:09 +02:00
Wim Taymans
c4b198962c
jack-tunnel: pass bytes to jack_to_midi
...
When the buffer has n_samples, we have n_samples * sizeof(float) bytes
to fill with midi.
2026-05-04 13:51:55 +02:00
Wim Taymans
bd8eab3ffb
raop: handle allocation error and avoid crash later
2026-05-04 13:46:09 +02:00
Wim Taymans
ed33b4d877
jack: dlclose on errors
2026-05-04 13:20:00 +02:00
Wim Taymans
4cf5acf18d
raop: free pending messages
2026-05-04 13:16:37 +02:00
Wim Taymans
7ab2b7d24a
raop: handle asprintf errors
2026-05-04 13:16:25 +02:00
Wim Taymans
a4d7607a88
raop: avoid division by 0
2026-05-04 12:26:08 +02:00
Wim Taymans
7dacdc8cc8
avb: bounds check the attribute encoding
...
Add a maxsize to the attribute encode functions and add checks that
they don't overwrite the provided buffer.
2026-05-04 10:47:52 +02:00
Wim Taymans
cda2e2ee17
rtp: fix ringbuffer overflow check
...
We write raw samples to the ringbuffer from the opus decode function so
compare the available space to the max amount of samples we can decode,
which is 2880 as passed to opus_decode.
2026-05-04 10:26:30 +02:00
Wim Taymans
17723bc00d
avb: fix MAAP packet send
...
Actually send the ehaternet header data as well. The send was skipping
the ehternet header and reading past the packet end.
2026-05-04 10:21:41 +02:00
Wim Taymans
67b70c8d23
netjack2: do some sanity checks on the MTU
...
It needs to be large enough foer the header, udp overhead and a uint32_t
for each audio channel to be able to send the sync packet.
Avoid string oob read when debugging the packet.
2026-05-04 10:13:44 +02:00
Wim Taymans
5a8a3b5a54
vban: don't write too large midi packets
2026-05-04 09:56:30 +02:00
Wim Taymans
be6bfba8eb
avb: check some allocation errors
2026-05-04 09:56:18 +02:00
Wim Taymans
32bb568225
avb: make sure to no blindly use the type as a command index
2026-05-04 09:55:35 +02:00
Wim Taymans
172f969650
avb: check packet sizes
...
Clamp packet len to the buffer size.
Reject packets with invalid data_len.
2026-05-04 09:53:33 +02:00
Wim Taymans
47deb75247
remote-node: check memory offsets and size
...
Check that the metadata, chunks and optionally the buffer data fit in
the memory.
2026-05-04 09:29:00 +02:00
hackerman-kl
7a826b1580
milan-avb: gptp: track request timing on CLOCK_MONOTONIC
2026-05-03 10:26:16 +02:00
hackerman-kl
4da6e39281
milan-avb: gptp: handle MANAGEMENT_ERROR_STATUS TLV as stale-data signal
2026-05-03 10:26:16 +02:00
hackerman-kl
09b3f0dc34
milan-avb: gptp: invalidate cached state when ptp4l stops responding
2026-05-03 10:26:16 +02:00
hackerman-kl
97436efe1e
milan-avb: cmd-get-as-path: build [gm,...,local] and emit unsolicited GET_AS_PATH
2026-05-03 10:26:16 +02:00
hackerman-kl
ff3367dc05
milan-avb: aecp-aem: emit unsolicited GET_AVB_INFO when gPTP changes
2026-05-03 10:26:16 +02:00
hackerman-kl
e02a4854de
milan-avb: gptp: query PATH_TRACE_LIST and store Announce path trace
2026-05-03 10:26:16 +02:00
hackerman-kl
55bb0b6a6a
milan-avb: gptp: query CURRENT_DATA_SET for canonical is_grandmaster check
2026-05-03 10:26:16 +02:00
hackerman-kl
c877ea4243
milan-avb: gptp: rate-limit management requests to 375 ms
2026-05-03 10:26:16 +02:00
hackerman-kl
fc08d2444a
milan-avb: gptp: send PTP management with majorSdoId=1 for gPTP profile
2026-05-03 10:26:16 +02:00
hackerman-kl
1b81dbab85
milan-avb: adding the ptp4l command line information
2026-05-03 10:26:16 +02:00
hackerman-kl
4b44c15768
milan-avb; introducing gptp/as_path interface specific dirty flags
2026-05-03 10:26:16 +02:00
hackerman-kl
21dd14618c
milan-avb: update banner
2026-05-03 10:26:16 +02:00