glibc/argp
Stefan Liebler f0c5a803bd Fix gcc 9 build errors for make xcheck. [BZ #24556]
This patch fixes the following gcc 9 warnings for "make xcheck" / "make bench":
-string/tst-strcasestr.c:
../include/bits/../../misc/bits/error.h:42:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=]

-argp/argp-test.c:
argp-test.c:130:20: error: ‘%d’ directive writing between 1 and 11 bytes into a region of size 10 [-Werror=format-overflow=]
argp-test.c:130:19: note: directive argument in the range [-2147483648, 122]
argp-test.c:130:5: note: ‘sprintf’ output between 2 and 12 bytes into a destination of size 10

-nss/tst-field.c:
tst-field.c:52:7: error: ‘%s’ directive argument is null [-Werror=format-overflow=]

-benchtests/bench-strstr.c:
../include/bits/../../misc/bits/error.h:42:5: error: ‘%s’ directive argument is null [-Werror=format-overflow=]

-benchtests/bench-malloc-simple.c:
bench-malloc-simple.c:93:16: error: iteration 3 invokes undefined behavior [-Werror=aggressive-loop-optimizations]

ChangeLog:

	[BZ #24556]
	* string/test-strcasestr.c (check_result): Add NULL check.
	* nss/tst-field.c (check_rewrite): Likewise.
	* benchtests/bench-strstr.c (do_one_test): Likewise.
	* string/test-strstr.c (check_result): Likewise.
	* argp/argp-test.c (popt): Increase size of buf to 12.
	* benchtests/bench-malloc-simple.c (bench):
	Do not initialize tests array out of bounds.
2019-06-19 12:32:04 +02:00
..
bits ldbl-opt: Add argp_error and argp_failure (bug 23983) 2019-03-01 15:21:32 -03:00
argp-ba.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-eexst.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-fmtstream.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-fmtstream.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-fs-xinl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-help.c Add internal implementations for argp.h, err.h, and error.h functions 2019-02-21 10:28:50 -03:00
argp-namefrob.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-parse.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-pv.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-pvh.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp-test.c Fix gcc 9 build errors for make xcheck. [BZ #24556] 2019-06-19 12:32:04 +02:00
argp-xinl.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
argp.h ldbl-opt: Add argp_error and argp_failure (bug 23983) 2019-03-01 15:21:32 -03:00
bug-argp1.c
bug-argp2.c
Makefile ldbl-opt: Add argp_error and argp_failure (bug 23983) 2019-03-01 15:21:32 -03:00
tst-argp1.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-argp2.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-ldbl-argp.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Versions