summaryrefslogtreecommitdiff
path: root/system/gettext-tiny/double-stack-size.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/gettext-tiny/double-stack-size.patch')
-rw-r--r--system/gettext-tiny/double-stack-size.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/gettext-tiny/double-stack-size.patch b/system/gettext-tiny/double-stack-size.patch
new file mode 100644
index 000000000..89f2f82f3
--- /dev/null
+++ b/system/gettext-tiny/double-stack-size.patch
@@ -0,0 +1,20 @@
+Seen in the Dzongkha translation of GConf 3.2.6:
+
+ /bin/sh: line 1: 25453 Aborted /usr/bin/msgfmt -o $file dz.po
+
+This is what we expect to see having a short read of the line; the line in
+question is 4,279 bytes long.
+
+--- gettext-tiny-0.3.0_pre1/src/msgfmt.c.old 2018-06-21 04:47:19.927932643 +0000
++++ gettext-tiny-0.3.0_pre1/src/msgfmt.c 2018-07-12 01:23:59.250000000 +0000
+@@ -370,8 +370,8 @@
+
+ int process(FILE *in, FILE *out) {
+ struct mo_hdr mohdr = def_hdr;
+- char line[4096]; char *lp;
+- char convbuf[16384];
++ char line[8192]; char *lp;
++ char convbuf[32768];
+
+ struct callbackdata d = {
+ .num = {