Changes between Initial Version and Version 1 of Ticket #685


Ignore:
Timestamp:
Dec 18, 2008 1:19:22 PM (15 years ago)
Author:
bennylp
Comment:

Workaround in r2381:

  • set the PJ_LOG_MAX_SIZE to (PJSIP_MAX_PKT_LEN+500) in config_site_sample.h

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #685

    • Property Status changed from new to closed
    • Property Resolution changed from to fixed
  • Ticket #685 – Description

    initial v1  
    1 A crash or assertion on debug mode will occur when processing (RX or TX) SIP packet with size close to PJ_LOG_MAX_SIZE (default is 2000). This is because the total log message size that is created to log this SIP packet may exceed the PJ_LOG_MAX_SIZE and this will cause the log to write data to outside the given buffer. 
     1A crash or assertion on debug mode will occur when processing (RX or TX) SIP packet with size close to PJ_LOG_MAX_SIZE (default is 2000).  
    22 
    3 This is because Symbian doesn't have vsnprintf (only vsprintf). 
     3The assertion is in {{{pjlib/src/pj/compat/string_compat.c:76}}}: 
     4 
     5 {{{ 
     6pj_assert(s1[len-1] == MARK_CHAR || s1[len-1] == '\0'); 
     7 }}} 
     8 
     9 
     10This is because the total log message size that is created to log this SIP packet may exceed the PJ_LOG_MAX_SIZE and this will cause the log to write data to outside the given buffer (because Symbian doesn't have {{{vsnprintf}}}). On debug mode it will trigger the above assertion. 
     11 
     12