fortify-headers

standalone fortify-source implementation
git clone git://git.2f30.org/fortify-headers
Log | Files | Refs | README | LICENSE

commit da5d5b242669f685e187d3356dcc083087624d56
parent 5ac7e1b695281ebdcfe365176d40053764d44684
Author: jvoisin <julien.voisin@dustri.org>
Date:   Wed, 22 Apr 2026 14:46:50 +0200

Add a regression test for wcrtomb

This was fixed in a255506ca487250255f9f048e61cf90166ceab77

Diffstat:
Mtests/Makefile | 1+
Atests/test_wcrtomb.c | 9+++++++++
2 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/tests/Makefile b/tests/Makefile @@ -93,6 +93,7 @@ RUNTIME_TARGETS= \ test_vsnprintf_dynamic \ test_vsnprintf_static \ test_vsprintf \ + test_wcrtomb \ test_wcscat_static_write \ test_wcscpy_static_write \ test_wcsncat_static_write \ diff --git a/tests/test_wcrtomb.c b/tests/test_wcrtomb.c @@ -0,0 +1,9 @@ +#include "common.h" + +#include <wchar.h> + +int main() { + char c; + wcrtomb(&c, L'0', NULL); + return 0; +}