pidgin: 2da48179: Bounds check log scanning, thanks to the...

elb at pidgin.im elb at pidgin.im
Thu Aug 11 12:42:09 EDT 2011


----------------------------------------------------------------------
Revision: 2da481797f1fc051a8d4f9c331528a3e4245e529
Parent:   8b5c6acd4648be88525b4b1d837cc7f493bdddf6
Author:   elb at pidgin.im
Date:     08/11/11 12:10:33
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/2da481797f1fc051a8d4f9c331528a3e4245e529

Changelog: 

Bounds check log scanning, thanks to the EFF

Changes against parent 8b5c6acd4648be88525b4b1d837cc7f493bdddf6

  patched  libpurple/log.c

-------------- next part --------------
============================================================
--- libpurple/log.c	d26c07ca333871fb08622268423e72552111b75f
+++ libpurple/log.c	0c3f25c46b130043aaa4f84bfcc5adf8156e6b2e
@@ -1838,7 +1838,7 @@ static GList *old_logger_list(PurpleLogT
 
 			g_snprintf(convostart, length, "%s", temp);
 			memset(&tm, 0, sizeof(tm));
-			sscanf(convostart, "%*s %s %d %d:%d:%d %d",
+			sscanf(convostart, "%*s %3s %d %d:%d:%d %d",
 			       month, &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec, &tm.tm_year);
 			/* Ugly hack, in case current locale is not English */
 			if (purple_strequal(month, "Jan")) {


More information about the Commits mailing list