Skip to content

libnatspec 0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 17 Oct 05:58
· 2 commits to master since this release

Security release: all versions from 0.1.0 to 0.3.5 have a stack buffer overflow in natspec_convert() / natspec_iconv() with transliteration enabled. Please update.

Security

  • Fix stack buffer overflow in natspec_iconv() / natspec_convert() with transliteration (since 0.1.0).
  • natspec_convert() uses a heap buffer instead of alloca(): big input no longer exhausts the stack.
  • natspec utility: fix use after free of the --transl argument with popt 1.19.

Changes

  • System locale is read from /etc/locale.conf, then /etc/sysconfig/i18n.
  • Charset is taken from the locale name when the locale is not in the table (be_BY.CP1251, zh_CN.GB2312); C, POSIX and C.UTF-8 are recognized.
  • Charset aliases are accepted (windows-1251, CP866, macintosh).
  • natspec_iconv_open() is thread safe.
  • Python binding works with Python 3.
  • Locale data and transliteration table fixes.

Build

  • The tarball contains a generated configure, so autotools are not needed to build it.
  • License is LGPL-2.1-only (SPDX).