[xmppd-dev] Bug in xdb.cc (fix included)

Vince Negri vince.negri at gmail.com
Fri Jul 18 12:43:29 CEST 2008


Hi all,

There is a bug in xdb.cc:

static void xdb_deliver(instance i, xdbcache xc) {
    xmlnode x;
    char ids[9];

...snip...
    snprintf(ids, sizeof(ids), "%d", xc->id);

xc->id can go larger than 99,999,999 - and then the "ids" buffer is
too small. This makes the jabber server grind to a near halt!

Vince


More information about the dev mailing list