pidgin: 47179f04: jabber: Document this not being an off-b...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Thu Aug 19 16:01:33 EDT 2010


----------------------------------------------------------------------
Revision: 47179f04bde4a1cd3857fd05eb4e40f25ee9e26f
Parent:   b06bece32ea9fdee372ab449f51888151b3fedbc
Author:   darkrain42 at pidgin.im
Date:     08/19/10 15:55:31
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/47179f04bde4a1cd3857fd05eb4e40f25ee9e26f

Changelog: 

jabber: Document this not being an off-by-one...

Changes against parent b06bece32ea9fdee372ab449f51888151b3fedbc

  patched  libpurple/protocols/jabber/auth_cyrus.c

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/auth_cyrus.c	d20e17ee1f9706f5df1b6276856608354e6ac056
+++ libpurple/protocols/jabber/auth_cyrus.c	3f58c82f738772bd8e63eb0520379cf888aadf39
@@ -103,6 +103,7 @@ static int jabber_sasl_cb_secret(sasl_co
 		return SASL_BADPARAM;
 
 	len = strlen(pw);
+	/* Not an off-by-one because sasl_secret_t defines char data[1] */
 	x = (sasl_secret_t *) realloc(x, sizeof(sasl_secret_t) + len);
 
 	if (!x)


More information about the Commits mailing list