out of bound memcopy compiler warning
The warning is displayed when building 0.4.1 on current Ubuntu https://launchpadlibrarian.net/567862635/buildlog_ubuntu-jammy-amd64.pipewire-media-session_0.4.1-2_BUILDING.txt.gz
from ../src/policy-node.c:25:
In function ‘memcpy’,
inlined from ‘spa_pod_builder_raw’ at /usr/include/spa-0.2/spa/pod/builder.h:150:3,
inlined from ‘spa_pod_builder_pad’ at /usr/include/spa-0.2/spa/pod/builder.h:164:16,
inlined from ‘spa_pod_builder_raw_padded’ at /usr/include/spa-0.2/spa/pod/builder.h:171:11,
inlined from ‘spa_pod_filter’ at /usr/include/spa-0.2/spa/pod/filter.h:400:9,
inlined from ‘check_passthrough.part.0’ at ../src/policy-node.c:254:8:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: ‘memcpy’ offset [1025, 9223372036854775807] is out of the bounds [0, 1024] of object ‘buffer’ with type ‘char[1024]’ [-Warray-bounds]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/policy-node.c: In function ‘check_passthrough.part.0’:
../src/policy-node.c:232:14: note: ‘buffer’ declared here
232 | char buffer[1024];
| ^~~~~~
``