Ignore:
Timestamp:
Oct 8, 2013 9:08:13 AM (11 years ago)
Author:
bennylp
Message:

Re #1703: fixing general bugs. First installment: correct handling of snprintf return value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_100rel.c

    r4208 r4613  
    345345                                 (int)tsx->method.name.slen, 
    346346                                 tsx->method.name.ptr); 
     347    if (rack.slen < 1 || rack.slen >= (int)sizeof(rack_buf)) { 
     348        return PJ_ETOOSMALL; 
     349    } 
    347350    rack_hdr = pjsip_generic_string_hdr_create(tdata->pool, &RACK, &rack); 
    348351    pjsip_msg_add_hdr(tdata->msg, (pjsip_hdr*) rack_hdr); 
Note: See TracChangeset for help on using the changeset viewer.