From 6d19a40a8a23d9aa5d61ace247a5fea1bd103995 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 8 Jun 2021 15:08:22 +0900 Subject: core: Avoid truncation of error message in the middle of a character. * configure.ac (AM_LANGINFO_CODESET): Add. * src/strerror.c (_gpg_strerror_r): Check the boundary of character. -- GnuPG-bug-id: 5048 Signed-off-by: NIIBE Yutaka --- configure.ac | 1 + 1 file changed, 1 insertion(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e15a321..c3faf99 100644 --- a/configure.ac +++ b/configure.ac @@ -82,6 +82,7 @@ AC_PROG_AWK AC_CHECK_TOOL(AR, ar, :) AC_USE_SYSTEM_EXTENSIONS +AM_LANGINFO_CODESET # Taken from mpfr-4.0.1, then modified for LDADD_FOR_TESTS_KLUDGE dnl Under Linux, make sure that the old dtags are used if LD_LIBRARY_PATH -- cgit v1.2.1