Changeset 5107


Ignore:
Timestamp:
Jun 12, 2015 3:07:05 AM (5 years ago)
Author:
riza
Message:

Misc (re #1843): Fix the possibility of crash when parsing multipart message.

File:
1 edited

Legend:

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

    r4792 r5107  
    549549        for (;;) { 
    550550            while (p!=end && *p!='-') ++p; 
    551             if (p!=end && *(p+1)=='-' && 
     551 
     552            if (p == end) 
     553                break; 
     554 
     555            if ((p+1<end) && *(p+1)=='-' && 
    552556                ((p>buf && *(p-1)=='\n') || (p==buf))) 
    553557            { 
Note: See TracChangeset for help on using the changeset viewer.