Projet

Général

Profil

0001-xml-handle-failure-of-xmlSecBase64Decode-8070.patch

Frédéric Péters, 19 août 2015 09:30

Télécharger (829 octets)

Voir les différences:

Subject: [PATCH] xml: handle failure of xmlSecBase64Decode() (#8070)

 lasso/xml/tools.c | 5 +++++
 1 file changed, 5 insertions(+)
lasso/xml/tools.c
1325 1325
	zre = xmlMalloc(len*4);
1326 1326
	len = xmlSecBase64Decode(b64_zre, zre, len*4);
1327 1327
	xmlFree(b64_zre);
1328
	if (len == -1) {
1329
		message(G_LOG_LEVEL_CRITICAL, "Failed to base64-decode query");
1330
		xmlFree(zre);
1331
		return FALSE;
1332
	}
1328 1333

  
1329 1334
	zstr.zalloc = NULL;
1330 1335
	zstr.zfree = NULL;
1331
-