From cf4c32134b582349fdec64af9df37484728f225c Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Thu, 18 Dec 2008 13:15:32 +0000 Subject: Ticket 685: Crash or assertion on debug mode when processing large SIP packet git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2381 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/include/pj/config_site_sample.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pjlib/include/pj') diff --git a/pjlib/include/pj/config_site_sample.h b/pjlib/include/pj/config_site_sample.h index 30c0e37a..223a1da6 100644 --- a/pjlib/include/pj/config_site_sample.h +++ b/pjlib/include/pj/config_site_sample.h @@ -73,6 +73,13 @@ # define PJSIP_MAX_PKT_LEN 2000 + /* This is important for Symbian. Symbian lacks vsnprintf(), so + * if the log buffer is not long enough it's possible that + * large incoming packet will corrupt memory when the log tries + * to log the packet. + */ +# define PJ_LOG_MAX_SIZE (PJSIP_MAX_PKT_LEN+500) + /* Since we don't have threads, log buffer can use static buffer */ # define PJ_LOG_USE_STACK_BUFFER 0 -- cgit v1.2.3