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

Vince Negri vince.negri at gmail.com
Mon Sep 8 12:45:08 CEST 2008


Hi All,

I haven't seen this get into either trunk or the branches. Is more
information required?

2008/7/18 Vince Negri <vince.negri at gmail.com>:
> 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