Changeset 1967


Ignore:
Timestamp:
May 28, 2008 4:16:26 PM (11 years ago)
Author:
bennylp
Message:

Fixed bug in pjmedia_sdp_rtpmap_to_attr(): may overwrite past the buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp.c

    r1810 r1967  
    467467 
    468468    attr->value.slen = len; 
    469     attr->value.ptr = (char*) pj_pool_alloc(pool, attr->value.slen); 
     469    attr->value.ptr = (char*) pj_pool_alloc(pool, attr->value.slen+1); 
    470470    pj_memcpy(attr->value.ptr, tempbuf, attr->value.slen+1); 
    471471 
Note: See TracChangeset for help on using the changeset viewer.