Ignore:
Timestamp:
Nov 14, 2017 8:20:15 AM (7 years ago)
Author:
ming
Message:

Fixed #2063: Add more documentation in PJSIP's parser to prevent stack buffer overflow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_multipart.c

    r5594 r5693  
    663663            if (*(end_body-1) == '\n') 
    664664                --end_body; 
    665             if (*(end_body-1) == '\r') 
     665            if (end_body > start_body && *(end_body-1) == '\r') 
    666666                --end_body; 
    667667        } 
Note: See TracChangeset for help on using the changeset viewer.