Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjsip/src/pjsip/sip_parser.c

    r5202 r5513  
    328328    status = pj_cis_dup(&pconst.pjsip_VIA_PARAM_SPEC_ESC, &pconst.pjsip_TOKEN_SPEC_ESC); 
    329329    PJ_ASSERT_RETURN(status == PJ_SUCCESS, status); 
    330     pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC, ":"); 
     330    pj_cis_add_str(&pconst.pjsip_VIA_PARAM_SPEC_ESC, ":"); 
    331331 
    332332    status = pj_cis_dup(&pconst.pjsip_HOST_SPEC, &pconst.pjsip_ALNUM_SPEC); 
     
    11501150                    pvalue->slen -= 2; 
    11511151                } 
    1152             } else if (*scanner->curptr == '[') { 
     1152            // } else if (*scanner->curptr == '[') { 
    11531153                /* pvalue can be a quoted IPv6; in this case, the 
    11541154                 * '[' and ']' quote characters are to be removed 
    1155                  * from the pvalue.  
     1155                 * from the pvalue. 
     1156                 * 
     1157                 * Update: this seems to be unnecessary and may cause 
     1158                 * parsing error for cases such as IPv6 reference with 
     1159                 * port number. 
    11561160                 */ 
    1157                 pj_scan_get_char(scanner); 
    1158                 pj_scan_get_until_ch(scanner, ']', pvalue); 
    1159                 pj_scan_get_char(scanner); 
     1161                // pj_scan_get_char(scanner); 
     1162                // pj_scan_get_until_ch(scanner, ']', pvalue); 
     1163                // pj_scan_get_char(scanner); 
    11601164            } else if(pj_cis_match(spec, *scanner->curptr)) { 
    11611165                parser_get_and_unescape(scanner, pool, spec, esc_spec, pvalue); 
     
    16721676    hdr->count++; 
    16731677 
    1674     while (*scanner->curptr == ',') { 
     1678    while ((hdr->count < PJSIP_GENERIC_ARRAY_MAX_COUNT) && 
     1679           (*scanner->curptr == ',')) 
     1680    { 
    16751681        pj_scan_get_char(scanner); 
    16761682        pj_scan_get( scanner, &pconst.pjsip_NOT_COMMA_OR_NEWLINE,  
    16771683                     &hdr->values[hdr->count]); 
    16781684        hdr->count++; 
    1679  
    1680         if (hdr->count >= PJSIP_GENERIC_ARRAY_MAX_COUNT) 
    1681             break; 
    16821685    } 
    16831686 
Note: See TracChangeset for help on using the changeset viewer.