diff options
author | Florian Weimer <fweimer@redhat.com> | 2022-05-23 10:08:18 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2022-05-23 11:06:31 +0200 |
commit | 0060a6de5493aeb4af457511e9b9ab532a6930a5 (patch) | |
tree | 2961b0e2020c1ae7c11e096d04a3c8a1d68cc49e /stdio-common/Makefile | |
parent | b094c52b1b65693368d0d70c505e0d0b4edad1c2 (diff) | |
download | glibc-0060a6de5493aeb4af457511e9b9ab532a6930a5.zip glibc-0060a6de5493aeb4af457511e9b9ab532a6930a5.tar.gz glibc-0060a6de5493aeb4af457511e9b9ab532a6930a5.tar.bz2 |
stdio-common: Add tst-memstream-string for open_memstream overflow
This code path is exercised indirectly by some of the DNS stub
resolver tests, via their own use of xopen_memstream for constructing
strings describing result data. The relative lack of test suite
coverage became apparent when these tests starting failing after a
printf changes uncovered bug 28949.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'stdio-common/Makefile')
-rw-r--r-- | stdio-common/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdio-common/Makefile b/stdio-common/Makefile index 2750334..b1e9144 100644 --- a/stdio-common/Makefile +++ b/stdio-common/Makefile @@ -175,6 +175,7 @@ tests := \ tst-gets \ tst-grouping \ tst-long-dbl-fphex \ + tst-memstream-string \ tst-obprintf \ tst-perror \ tst-popen \ @@ -390,6 +391,8 @@ CFLAGS-tst-gets.c += -Wno-deprecated-declarations # the fortified version had the same bug. CFLAGS-tst-bz11319-fortify2.c += -D_FORTIFY_SOURCE=2 +CFLAGS-tst-memstream-string.c += -fno-builtin-fprintf + CPPFLAGS += $(libio-mtsafe) $(objpfx)tst-setvbuf1.out: /dev/null $(objpfx)tst-setvbuf1 |