mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
3df816fcb8
running samba-fuzz CI job on latest tumbleweed docker image results in; ../../librpc/ndr/ndr_orpc.c: In function ‘ndr_print_DUALSTRINGARRAY’: ../../librpc/ndr/ndr_orpc.c:97:49: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=] 97 | snprintf(idx, sizeof(idx), "[%d]", i); | ^ ../../librpc/ndr/ndr_orpc.c:97:17: note: ‘snprintf’ output between 4 and 14 bytes into a destination of size 13 97 | snprintf(idx, sizeof(idx), "[%d]", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../librpc/ndr/ndr_orpc.c:105:49: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=] 105 | snprintf(idx, sizeof(idx), "[%d]", i); | ^ ../../librpc/ndr/ndr_orpc.c:105:17: note: ‘snprintf’ output between 4 and 14 bytes into a destination of size 13 105 | snprintf(idx, sizeof(idx), "[%d]", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../../librpc/ndr/ndr_orpc.c: In function ‘ndr_print_STRINGARRAY’: ../../librpc/ndr/ndr_orpc.c:159:49: error: ‘snprintf’ output may be truncated before the last format character [-Werror=format-truncation=] 159 | snprintf(idx, sizeof(idx), "[%d]", i); | ^ ../../librpc/ndr/ndr_orpc.c:159:17: note: ‘snprintf’ output between 4 and 14 bytes into a destination of size 13 159 | snprintf(idx, sizeof(idx), "[%d]", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Tue Sep 10 01:22:28 UTC 2024 on atb-devel-224