Projet

Général

Profil

0001-tools-set-output-buffer-size-in-lasso_inflate-to-20-.patch

Benjamin Dauvergne, 28 juin 2018 23:18

Télécharger (858 octets)

Voir les différences:

Subject: [PATCH] tools: set output buffer size in lasso_inflate to 20 times
 the input size (fixes #24853)

 lasso/xml/tools.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lasso/xml/tools.c
1353 1353
	zstr.zfree = NULL;
1354 1354
	zstr.opaque = NULL;
1355 1355

  
1356
	output = g_malloc(len*10);
1356
	output = g_malloc(len*20);
1357 1357
	zstr.avail_in = len;
1358 1358
	zstr.next_in = (unsigned char*)input;
1359 1359
	zstr.total_in = 0;
1360
	zstr.avail_out = len*10;
1360
	zstr.avail_out = len*20;
1361 1361
	zstr.total_out = 0;
1362 1362
	zstr.next_out = output;
1363 1363

  
1364
-