Fix off-by-one OOB write in iconv/tst-iconv-mt
commit0a520f28ffc8820d46074a71323db4c9652873be
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Mon, 26 Sep 2022 14:38:19 +0000 (26 15:38 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Wed, 4 Oct 2023 07:33:20 +0000 (4 08:33 +0100)
tree7774d06cb34d9c71f2d03922f35e9779e26939d6
parent1056e5b4c3f2d90ed2b4a55f96add28da2f4c8fa
Fix off-by-one OOB write in iconv/tst-iconv-mt

The iconv buffer sizes must not include the \0 string terminator.
And the output termination with *outbufpos = '\0' was OOB.

Consistently use non-null-terminated buffer sizes.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
iconv/tst-iconv-mt.c