stdio-common: Add tst-memstream-string for open_memstream overflow
authorFlorian Weimer <fweimer@redhat.com>
Mon, 23 May 2022 08:08:18 +0000 (10:08 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 23 May 2022 09:06:31 +0000 (11:06 +0200)
commit0060a6de5493aeb4af457511e9b9ab532a6930a5
tree2961b0e2020c1ae7c11e096d04a3c8a1d68cc49e
parentb094c52b1b65693368d0d70c505e0d0b4edad1c2
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>
stdio-common/Makefile
stdio-common/tst-memstream-string.c [new file with mode: 0644]