Projet

Général

Profil

0001-Make-lasso_inflate-output-the-inflated-buffer-size-7.patch

Benjamin Dauvergne, 17 novembre 2022 18:54

Télécharger (1023 octets)

Voir les différences:

Subject: [PATCH 1/4] Make lasso_inflate output the inflated buffer size
 (#73313)

 lasso/xml/tools.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
lasso/xml/tools.c
1364 1364
}
1365 1365

  
1366 1366
unsigned char*
1367
lasso_inflate(unsigned char *input, size_t len)
1367
lasso_inflate(unsigned char *input, size_t len, size_t *outlen)
1368 1368
{
1369 1369
	z_stream zstr;
1370 1370
	unsigned char *output;
1371 1371
	int z_err;
1372 1372

  
1373
	*outlen = 0;
1373 1374
	zstr.zalloc = NULL;
1374 1375
	zstr.zfree = NULL;
1375 1376
	zstr.opaque = NULL;
......
1398 1399
	}
1399 1400
	output[zstr.total_out] = 0;
1400 1401
	inflateEnd(&zstr);
1402
	*outlen = zstr.total_out;
1401 1403

  
1402 1404
	return output;
1403 1405
}
1404
-