shared-macros.mk: drop support for 32 bit mysql
[oi-userland.git] / components / sysutils / dvd+rw-tools / patches / 07-wctomb.patch
blob871f50890f41cb04efb9aa9cf2f9d44c09c63184
1 Debian: https://sources.debian.net/src/dvd%2Brw-tools/7.1-11.1/debian/patches/09-wctomb.patch/
3 Author: Kees Cook <kees@debian.org>
4 Description: wctomb called with too small a buffer, patch originally taken from fedora (Closes: #497833).
6 MB_LEN_MAX is typically 16 in glibc
8 --- a/transport.hxx
9 +++ b/transport.hxx
10 @@ -124,7 +124,7 @@
11 extern "C" char *plusminus_locale()
12 { static class __plusminus {
13 private:
14 - char str[4];
15 + char str[16];
16 public:
17 __plusminus() { setlocale(LC_CTYPE,ENV_LOCALE);
18 int l = wctomb(str,(wchar_t)(unsigned char)'±');