Changeset 2205 for pjproject/trunk


Ignore:
Timestamp:
Aug 12, 2008 10:55:28 AM (16 years ago)
Author:
bennylp
Message:

Ticket #592: URI comparison may crash the application (thanks Pedro Gonçalves for the report)

File:
1 edited

Legend:

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

    r2193 r2205  
    602602    int d; 
    603603 
     604    /* Check that naddr2 is also a name_addr */ 
     605    if (naddr1->vptr != naddr2->vptr) 
     606        return -1; 
     607 
    604608    /* I'm not sure whether display name is included in the comparison. */ 
    605609    if (pj_strcmp(&naddr1->display, &naddr2->display) != 0) { 
     
    685689{ 
    686690    PJ_UNUSED_ARG(context); 
     691 
     692    /* Check that uri2 is also an other_uri */ 
     693    if (uri1->vptr != uri2->vptr) 
     694        return -1; 
    687695     
    688696    /* Scheme must match. */ 
Note: See TracChangeset for help on using the changeset viewer.