summaryrefslogtreecommitdiff
path: root/src/network/hstrerror.c
AgeCommit message (Collapse)AuthorLines
2026-09-07fix integer overflow in gai_strerror, hstrerror and regerrorLuca Kellermann-1/+2
at least gai_strerror() and regerror() are specified to accept any int value. if the value was close to INT_MAX (for gai_strerror()) or INT_MIN (for hstrerror() and regerror()) a signed integer overflow would occur. fix this by converting the int argument to unsigned before doing arithmetic.
2014-07-26add support for LC_TIME and LC_MESSAGES translationsRich Felker-1/+3
for LC_MESSAGES, translation of strerror and similar literal message functions is supported. for messages in other places (particularly the dynamic linker) that use format strings, translation is not yet supported. in order to make it possible and safe, such messages will need to be refactored to separate the textual content from the format. for LC_TIME, the day and month names and strftime-style format strings provided by nl_langinfo are supported for translation. however there may be limitations, as some of the original C-locale nl_langinfo strings are non-unique and thus perhaps non-suitable as keys. overall, the locale support activated by this commit should not be seen as complete and polished but as a basis for beginning to test locale functionality and implement locales.
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+16