Subject UDF from freeadhocudf and Firebird bug (buffer overflow)
Author Vander Clock Stephane
hello,

// ct 2007-12-03 readded ib_util for ib_util_malloc
#include "ib_util.h"
//#define MALLOC ib_util_malloc
// pm 2006-09-24
// Workaround for Firebird bug (buffer overflow):
// Firebird writes data after end of returned UDF data.
// Allocation of the string buffer maximum of >= 32762 Bytes
// for all strings solves this problem.
// n is dummy referenced to avoid "unused variable" warning.
// FB_API_VER is only defined in ibase.h of FireBird
#ifdef FB_API_VER
#define MALLOC(n) (ib_util_malloc((n) - (n) + MAX_STRINGBUFFER_SIZE))
#else
#define MALLOC ib_util_malloc
#endif

it's this still true in FB 2.5 ?

tanks by advance
stéphane