summaryrefslogblamecommitdiff
path: root/system/gettext-tiny/double-stack-size.patch
blob: 89f2f82f33eda7f396004f16b72610317f22cdec (plain) (tree)



















                                                                                   
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 = {