diff options
-rw-r--r-- | pjlib/include/pj/config_site_sample.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |