diff options
author | Narrat | 2019-08-22 20:53:22 +0200 |
---|---|---|
committer | Narrat | 2019-08-22 20:53:22 +0200 |
commit | 90a11cbc2a7612afd701a27730842d2e61e0b0e6 (patch) | |
tree | 7bb59999053ff292e976895d5987c9462085c299 /buffer_overflow.patch | |
parent | c588c8dd8719800c656f6157875563f3d3415c09 (diff) | |
download | aur-90a11cbc2a7612afd701a27730842d2e61e0b0e6.tar.gz |
7kaa: Add patch for buffer overflow
See https://github.com/the3dfxdude/7kaa/issues/172
Diffstat (limited to 'buffer_overflow.patch')
-rw-r--r-- | buffer_overflow.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/buffer_overflow.patch b/buffer_overflow.patch new file mode 100644 index 000000000000..4cb21f2d1067 --- /dev/null +++ b/buffer_overflow.patch @@ -0,0 +1,18 @@ +--- 7kaa-2.15.2/src/LocaleRes.cpp ++++ 7kaa-2.15.2/src/LocaleRes.cpp +@@ -107,10 +107,12 @@ + strcpy(lang, "??"); + strcpy(codeset, "ISO-8859-1"); + } +- strcat(codeset, "//TRANSLIT"); + +- cd = iconv_open(codeset, ""); ++ String tocode(codeset); ++ tocode += "//TRANSLIT"; ++ cd = iconv_open(tocode, ""); + cd_latin = iconv_open("ISO-8859-1", ""); ++ + in_buf = mem_add(INIT_BUF_SIZE+1); + in_buf_size = INIT_BUF_SIZE; + out_buf = mem_add(INIT_BUF_SIZE+1); + |