[OpenSER-Devel] ERROR:core:pv_printf: buffer overflow (doing a long SQL query)
Iñaki Baz Castillo
ibc at in.ilimit.es
Mon Jan 7 16:23:56 UTC 2008
On Monday 07 January 2008 16:45:24 Iñaki Baz Castillo wrote:
> -----------------------------------
> Jan 7 16:42:30 [4101] ERROR:core:pv_printf: no more space for text [34]
> Jan 7 16:42:30 [4101] ERROR:core:pv_printf: buffer overflow -- increase
> the buffer size...
> Jan 7 16:42:30 [4101] ERROR:avpops:ops_dbquery_avps: cannot print the
> query -----------------------------------
>
> It ocurrs when the RURI is very long (because the SQL uses the RURI).
>
> How can I increase that buffer size? Thanks a lot.
I've found in pvar.c:
-----------------
#define PV_PRINT_BUF_SIZE 1024
#define PV_PRINT_BUF_NO 3
/*IMPORTANT NOTE - even if the function prints and returns a static buffer, it
* has built-in support for 3 levels of nesting (or concurrent usage).
* If you think it's not enough for you, either use pv_printf() directly,
* either increase PV_PRINT_BUF_NO --bogdan */
-----------------
Should I increase PV_PRINT_BUF_SIZE or PV_PRINT_BUF_NO ?
--
Iñaki Baz Castillo
ibc at in.ilimit.es
More information about the Devel
mailing list