glibc/localedata/tests-mbwc
Stefan Liebler c0f21e073d tests-mbwc: Silence gcc 14 -Werror=format-overflow=
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.
2024-06-27 16:49:26 +02:00
..
dat_isw-funcs.h * tests-mbwc/tst_funcs.h (TMD_ERRET): Don't declare err_flg. 2000-08-18 09:34:18 +00:00
dat_iswalnum.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_iswalpha.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_iswcntrl.c Update. 2003-01-03 22:32:41 +00:00
dat_iswctype.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_iswdigit.c Update. 2003-01-03 22:32:41 +00:00
dat_iswgraph.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_iswlower.c Update. 2003-01-03 22:32:41 +00:00
dat_iswprint.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_iswpunct.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_iswspace.c Update. 2003-01-03 22:32:41 +00:00
dat_iswupper.c Update. 2003-01-03 22:32:41 +00:00
dat_iswxdigit.c Update. 2003-01-03 22:32:41 +00:00
dat_mblen.c Remove trailing whitespace from localedata. 2013-06-07 14:56:03 +00:00
dat_mbrlen.c Update tst_mbrlen/tst_mbrtowc for mblen change 2015-04-10 15:45:53 -07:00
dat_mbrtowc.c Update. 2003-01-03 22:32:41 +00:00
dat_mbsrtowcs.c Update. 2003-01-03 22:32:41 +00:00
dat_mbstowcs.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_mbtowc.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_strcoll.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_strfmon.c Update. 2003-01-03 22:32:41 +00:00
dat_strxfrm.c Update. 2003-01-03 22:32:41 +00:00
dat_swscanf.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_tow-funcs.h
dat_towctrans.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_towlower.c Update. 2003-01-03 22:32:41 +00:00
dat_towupper.c Update. 2003-01-03 22:32:41 +00:00
dat_wcrtomb.c Update. 2003-01-03 22:32:41 +00:00
dat_wcscat.c Update. 2003-01-03 22:32:41 +00:00
dat_wcschr.c Update. 2003-01-03 22:32:41 +00:00
dat_wcscmp.c Update. 2003-01-03 22:32:41 +00:00
dat_wcscoll.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_wcscpy.c Update. 2003-01-03 22:32:41 +00:00
dat_wcscspn.c Update. 2003-01-03 22:32:41 +00:00
dat_wcslen.c Update. 2003-01-03 22:32:41 +00:00
dat_wcsncat.c Fix typos. 2013-08-30 18:08:59 +02:00
dat_wcsncmp.c Use correct signedness in wcsncmp 2015-04-13 21:25:04 +02:00
dat_wcsncpy.c Update. 2003-01-03 22:32:41 +00:00
dat_wcspbrk.c Update. 2003-01-03 22:32:41 +00:00
dat_wcsrtombs.c Update. 2003-01-03 22:32:41 +00:00
dat_wcsspn.c Update. 2003-01-03 22:32:41 +00:00
dat_wcsstr.c Update. 2003-01-03 22:32:41 +00:00
dat_wcstod.c Update. 2003-01-03 22:32:41 +00:00
dat_wcstok.c Update. 2003-01-03 22:32:41 +00:00
dat_wcstombs.c Update. 2003-01-03 22:32:41 +00:00
dat_wcswidth.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_wcsxfrm.c Update. 2003-01-03 22:32:41 +00:00
dat_wctob.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
dat_wctomb.c Update. 2003-01-03 22:32:41 +00:00
dat_wctrans.c Update. 2003-01-03 22:32:41 +00:00
dat_wctype.c Update. 2003-01-03 22:32:41 +00:00
dat_wcwidth.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
tgn_funcdef.h
tgn_locdef.h Update. 2000-07-28 19:52:40 +00:00
tsp_common.c tests-mbwc: Silence gcc 14 -Werror=format-overflow= 2024-06-27 16:49:26 +02:00
tst_funcs.h localedata: Remove unused variables in tests 2022-03-31 08:38:35 -03:00
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 Tests for mblen. 2000-06-29 06:45:01 +00:00
tst_mbrlen.c Update. 2002-08-25 08:44:43 +00:00
tst_mbrtowc.c localedate: Fix printf type on tst_mbrtowc 2022-03-31 08:49:55 -03:00
tst_mbsrtowcs.c Update. 2002-08-25 08:44:43 +00:00
tst_mbstowcs.c Update. 2002-08-25 08:44:43 +00:00
tst_mbtowc.c Update. 2000-06-29 23:35:35 +00:00
tst_strcoll.c localedata: Remove unused variables in tests 2022-03-31 08:38:35 -03:00
tst_strfmon.c Update. 2002-08-25 08:44:43 +00:00
tst_strxfrm.c localedata: Remove unused variables in tests 2022-03-31 08:38:35 -03:00
tst_swscanf.c Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
tst_towctrans.c Fix Wundef warning with SHOJI_IS_RIGHT 2014-07-08 15:02:58 +05:30
tst_towlower.c
tst_towupper.c
tst_types.h * tests-mbwc/tst_types.h (TIN)MBRLEN_REC): Use correct array 2008-12-26 18:59:44 +00:00
tst_wcrtomb.c Update. 2000-06-29 10:36:12 +00:00
tst_wcscat.c Update. 2002-08-25 08:44:43 +00:00
tst_wcschr.c localedata: Remove unused variables in tests 2022-03-31 08:38:35 -03:00
tst_wcscmp.c Update. 2000-10-01 18:47:09 +00:00
tst_wcscoll.c Update. 2000-06-28 04:27:24 +00:00
tst_wcscpy.c Fix tst_wcscpy.c test. 2015-01-21 12:30:42 +01:00
tst_wcscspn.c Update. 2002-08-25 08:44:43 +00:00
tst_wcslen.c
tst_wcsncat.c Update. 2002-08-25 08:44:43 +00:00
tst_wcsncmp.c Use correct signedness in wcsncmp 2015-04-13 21:25:04 +02:00
tst_wcsncpy.c Update. 2002-08-25 08:44:43 +00:00
tst_wcspbrk.c localedata: Remove unused variables in tests 2022-03-31 08:38:35 -03:00
tst_wcsrtombs.c Update. 2002-08-25 08:44:43 +00:00
tst_wcsspn.c Update. 2002-08-25 08:44:43 +00:00
tst_wcsstr.c Update. 2002-08-25 08:44:43 +00:00
tst_wcstod.c Update. 2002-08-25 08:44:43 +00:00
tst_wcstok.c Update. 2002-08-25 08:44:43 +00:00
tst_wcstombs.c Update. 2002-08-25 08:44:43 +00:00
tst_wcswidth.c
tst_wcsxfrm.c localedata: Remove unused variables in tests 2022-03-31 08:38:35 -03:00
tst_wctob.c
tst_wctomb.c Update. 2000-06-29 07:13:12 +00:00
tst_wctrans.c Update. 2000-06-28 04:27:24 +00:00
tst_wctype.c Update. 2000-06-28 04:27:24 +00:00
tst_wcwidth.c