summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-06-28 21:16:18 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2018-06-28 21:16:18 (GMT)
commitf33d51db53373eb1f0a6429320e9de60210d5270 (patch)
treea3248c8e5ccc544d2c4e1babd9655ca3a0edf2ae
parent9e3701667372568d5d990b5abd8dd23c7b0fe03c (diff)
downloadlasso-f33d51db53373eb1f0a6429320e9de60210d5270.zip
lasso-f33d51db53373eb1f0a6429320e9de60210d5270.tar.gz
lasso-f33d51db53373eb1f0a6429320e9de60210d5270.tar.bz2
tools: set output buffer size in lasso_inflate to 20 times the input size (fixes #24853)
-rw-r--r--lasso/xml/tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/xml/tools.c b/lasso/xml/tools.c
index 6a9ce18..c10bdd4 100644
--- a/lasso/xml/tools.c
+++ b/lasso/xml/tools.c
@@ -1353,11 +1353,11 @@ lasso_inflate(unsigned char *input, size_t len)
zstr.zfree = NULL;
zstr.opaque = NULL;
- output = g_malloc(len*10);
+ output = g_malloc(len*20);
zstr.avail_in = len;
zstr.next_in = (unsigned char*)input;
zstr.total_in = 0;
- zstr.avail_out = len*10;
+ zstr.avail_out = len*20;
zstr.total_out = 0;
zstr.next_out = output;