sctp: snprintf warnings for internal usrsctp lib
These probably need fixing. I presume the file paths are now longer so things won't fit into the statically-sized array any more which was sized for shorter file paths. Might need an upstream fix though, because it might potentially also affect use as a submodule.
[3547/4426] Compiling C object subprojects/gst-plugins-bad/ext/sctp/usrsctp/libusrsctp-static.a.p/usrsctplib_netinet_sctp_input.c.o
In file included from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os.h:74,
from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:40:
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c: In function ‘sctp_process_control’:
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 20 bytes into a region of size 6 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:4926:5: note: in expansion of macro ‘SCTP_SNPRINTF’
4926 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 143 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:4926:5: note: in expansion of macro ‘SCTP_SNPRINTF’
4926 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 20 bytes into a region of size 6 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:4882:4: note: in expansion of macro ‘SCTP_SNPRINTF’
4882 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 143 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:4882:4: note: in expansion of macro ‘SCTP_SNPRINTF’
4882 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c: In function ‘sctp_common_input_processing’:
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 28 bytes into a region of size 6 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:5914:4: note: in expansion of macro ‘SCTP_SNPRINTF’
5914 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 151 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:5914:4: note: in expansion of macro ‘SCTP_SNPRINTF’
5914 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 28 bytes into a region of size 6 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:5997:4: note: in expansion of macro ‘SCTP_SNPRINTF’
5997 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 151 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:5997:4: note: in expansion of macro ‘SCTP_SNPRINTF’
5997 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 28 bytes into a region of size 6 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:6083:4: note: in expansion of macro ‘SCTP_SNPRINTF’
6083 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 151 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_input.c:6083:4: note: in expansion of macro ‘SCTP_SNPRINTF’
6083 | SCTP_SNPRINTF(msg, sizeof(msg), "OOTB, %s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
[3581/4426] Generating viewporter-protocol.c with a custom command
Using "code" is deprecated - use private-code or public-code.
See the help page for details.
[3585/4426] Generating fullscreen-shell-unstable-v1-protocol.c with a custom command
Using "code" is deprecated - use private-code or public-code.
See the help page for details.
[3587/4426] Generating linux-dmabuf-unstable-v1-protocol.c with a custom command
Using "code" is deprecated - use private-code or public-code.
See the help page for details.
[3588/4426] Generating xdg-shell-protocol.c with a custom command
Using "code" is deprecated - use private-code or public-code.
See the help page for details.
[3593/4426] Compiling C object subprojects/gst-plugins-bad/ext/sctp/usrsctp/libusrsctp-static.a.p/usrsctplib_netinet_sctp_output.c.o
In file included from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os.h:74,
from ../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c:40:
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c: In function ‘sctp_send_initiate_ack’:
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 22 bytes into a region of size 11 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c:6020:4: note: in expansion of macro ‘SCTP_SNPRINTF’
6020 | SCTP_SNPRINTF(msg, sizeof(msg), "%s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 140 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c:6020:4: note: in expansion of macro ‘SCTP_SNPRINTF’
6020 | SCTP_SNPRINTF(msg, sizeof(msg), "%s:%d at %s", __FILE__, __LINE__, __func__);
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c: In function ‘sctp_lower_sosend’:
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 17 bytes into a region of size 10 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c:14633:6: note: in expansion of macro ‘SCTP_SNPRINTF’
14633 | SCTP_SNPRINTF(msg, sizeof(msg),
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 136 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c:14633:6: note: in expansion of macro ‘SCTP_SNPRINTF’
14633 | SCTP_SNPRINTF(msg, sizeof(msg),
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c: In function ‘sctp_sendall_iterator’:
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: warning: ‘%s’ directive output truncated writing 21 bytes into a region of size 11 [-Wformat-truncation=]
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c:7271:7: note: in expansion of macro ‘SCTP_SNPRINTF’
7271 | SCTP_SNPRINTF(msg, sizeof(msg),
| ^~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_os_userspace.h:809:6: note: ‘snprintf’ output 139 bytes into a destination of size 128
809 | if (snprintf(data, __VA_ARGS__) < 0) { \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../home/tpm/Devel/gst-build/subprojects/gst-plugins-bad/ext/sctp/usrsctp/usrsctplib/netinet/sctp_output.c:7271:7: note: in expansion of macro ‘SCTP_SNPRINTF’
7271 | SCTP_SNPRINTF(msg, sizeof(msg),
| ^~~~~~~~~~~~~
Edited by Tim-Philipp Müller