Ticket 685: Crash or assertion on debug mode when processing large SIP packet

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2381 74dad513-b988-da41-8d7b-12977e46ad98
diff --git a/pjlib/include/pj/config_site_sample.h b/pjlib/include/pj/config_site_sample.h
index 30c0e37..223a1da 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