summaryrefslogtreecommitdiff
path: root/system/gettext-tiny/double-stack-size.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-11 20:26:19 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-11 20:26:19 -0500
commitb0785d33c0e284959e3317b0a2839c509a2f36fc (patch)
tree7e56290163f1a88961ea6e581d421dc3ced0e74d /system/gettext-tiny/double-stack-size.patch
parent345e5a8b2c9aff44eaf699eed18b1b3066d35d05 (diff)
downloadpackages-b0785d33c0e284959e3317b0a2839c509a2f36fc.tar.gz
packages-b0785d33c0e284959e3317b0a2839c509a2f36fc.tar.bz2
packages-b0785d33c0e284959e3317b0a2839c509a2f36fc.tar.xz
packages-b0785d33c0e284959e3317b0a2839c509a2f36fc.zip
system/gettext-tiny: workaround issue that makes GConf fail
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 = {