comparison libpurple/protocols/gg/gg.c @ 30258:e96c7113d32b

gadu-gadu: Fix a crash due to uninitialized data. Closes #11746. This is a different fix, based on feedback on the libgadu mailing list. "It's a feature, not a bug. You're supposed to iterate through the array until there's uin == 0."
author Paul Aurich <paul@darkrain42.org>
date Wed, 28 Apr 2010 22:13:51 +0000
parents fb270a3d0732
children 2a436e0ce977
comparison
equal deleted inserted replaced
30257:4eb6ac47f01f 30258:e96c7113d32b
1599 n->uin, GG_S(n->status), descr); 1599 n->uin, GG_S(n->status), descr);
1600 } 1600 }
1601 } 1601 }
1602 break; 1602 break;
1603 case GG_EVENT_NOTIFY60: 1603 case GG_EVENT_NOTIFY60:
1604 purple_debug_info("gg",
1605 "notify60_pre: (%d) status=%d; version=%d; descr=%s\n",
1606 ev->event.notify60->uin, GG_S(ev->event.notify60->status),
1607 ev->event.notify60->version,
1608 ev->event.notify60->descr ? ev->event.notify60->descr : "(null)");
1609
1610 for (i = 0; ev->event.notify60[i].uin; i++) { 1604 for (i = 0; ev->event.notify60[i].uin; i++) {
1611 purple_debug_info("gg", 1605 purple_debug_info("gg",
1612 "notify60: (%d) status=%d; version=%d; descr=%s\n", 1606 "notify60: (%d) status=%d; version=%d; descr=%s\n",
1613 ev->event.notify60[i].uin, 1607 ev->event.notify60[i].uin,
1614 GG_S(ev->event.notify60[i].status), 1608 GG_S(ev->event.notify60[i].status),