Home GnuPG

core: Avoid truncation of error message in the middle of a character.

Description

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: T5048
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Jun 8 2021, 8:08 AM
Parents
rEf9b50dafc5d3: build: _DARWIN_C_SOURCE should be 1.
Branches
Unknown
Tags
Unknown
Tasks
T5048: Error handling in libassuan