mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
c0f21e073d
With gcc 14, I get this warning/werror when building the localedata tests: tests-mbwc/tsp_common.c: In function ‘result.constprop.isra’: tests-mbwc/tsp_common.c:55:43: error: ‘%s’ directive writing up to 92 bytes into a region of size between 0 and 114 [-Werror=format-overflow=] 55 | sprintf (result_rec, "%s:%s:%d:%d:%d:%c:%s\n", func, loc, rec_no, seq_no, | ^~ In file included from ../include/bits/stdio2.h:1, from ../libio/stdio.h:980, from ../include/stdio.h:14, from tests-mbwc/tsp_common.c:10: In function ‘sprintf’, inlined from ‘result.constprop.isra’ at tests-mbwc/tsp_common.c:55:3: ../libio/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 20 and 234 bytes into a destination of size 132 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors This patch now gets rid of using sprintf and the result_rec buffer and just prints to fp directly. |
||
---|---|---|
.. | ||
dat_isw-funcs.h | ||
dat_iswalnum.c | ||
dat_iswalpha.c | ||
dat_iswcntrl.c | ||
dat_iswctype.c | ||
dat_iswdigit.c | ||
dat_iswgraph.c | ||
dat_iswlower.c | ||
dat_iswprint.c | ||
dat_iswpunct.c | ||
dat_iswspace.c | ||
dat_iswupper.c | ||
dat_iswxdigit.c | ||
dat_mblen.c | ||
dat_mbrlen.c | ||
dat_mbrtowc.c | ||
dat_mbsrtowcs.c | ||
dat_mbstowcs.c | ||
dat_mbtowc.c | ||
dat_strcoll.c | ||
dat_strfmon.c | ||
dat_strxfrm.c | ||
dat_swscanf.c | ||
dat_tow-funcs.h | ||
dat_towctrans.c | ||
dat_towlower.c | ||
dat_towupper.c | ||
dat_wcrtomb.c | ||
dat_wcscat.c | ||
dat_wcschr.c | ||
dat_wcscmp.c | ||
dat_wcscoll.c | ||
dat_wcscpy.c | ||
dat_wcscspn.c | ||
dat_wcslen.c | ||
dat_wcsncat.c | ||
dat_wcsncmp.c | ||
dat_wcsncpy.c | ||
dat_wcspbrk.c | ||
dat_wcsrtombs.c | ||
dat_wcsspn.c | ||
dat_wcsstr.c | ||
dat_wcstod.c | ||
dat_wcstok.c | ||
dat_wcstombs.c | ||
dat_wcswidth.c | ||
dat_wcsxfrm.c | ||
dat_wctob.c | ||
dat_wctomb.c | ||
dat_wctrans.c | ||
dat_wctype.c | ||
dat_wcwidth.c | ||
tgn_funcdef.h | ||
tgn_locdef.h | ||
tsp_common.c | ||
tst_funcs.h | ||
tst_iswalnum.c | ||
tst_iswalpha.c | ||
tst_iswcntrl.c | ||
tst_iswctype.c | ||
tst_iswdigit.c | ||
tst_iswgraph.c | ||
tst_iswlower.c | ||
tst_iswprint.c | ||
tst_iswpunct.c | ||
tst_iswspace.c | ||
tst_iswupper.c | ||
tst_iswxdigit.c | ||
tst_mblen.c | ||
tst_mbrlen.c | ||
tst_mbrtowc.c | ||
tst_mbsrtowcs.c | ||
tst_mbstowcs.c | ||
tst_mbtowc.c | ||
tst_strcoll.c | ||
tst_strfmon.c | ||
tst_strxfrm.c | ||
tst_swscanf.c | ||
tst_towctrans.c | ||
tst_towlower.c | ||
tst_towupper.c | ||
tst_types.h | ||
tst_wcrtomb.c | ||
tst_wcscat.c | ||
tst_wcschr.c | ||
tst_wcscmp.c | ||
tst_wcscoll.c | ||
tst_wcscpy.c | ||
tst_wcscspn.c | ||
tst_wcslen.c | ||
tst_wcsncat.c | ||
tst_wcsncmp.c | ||
tst_wcsncpy.c | ||
tst_wcspbrk.c | ||
tst_wcsrtombs.c | ||
tst_wcsspn.c | ||
tst_wcsstr.c | ||
tst_wcstod.c | ||
tst_wcstok.c | ||
tst_wcstombs.c | ||
tst_wcswidth.c | ||
tst_wcsxfrm.c | ||
tst_wctob.c | ||
tst_wctomb.c | ||
tst_wctrans.c | ||
tst_wctype.c | ||
tst_wcwidth.c |