Ignore:
Timestamp:
Jul 26, 2016 2:58:44 AM (8 years ago)
Author:
nanang
Message:

Misc (re #1945): Updated array limit checks and docs in pjsip_evsub_register_pkg() and pjsip_endpt_add_capability(). Thanks Alexei Gradinari for the patch.

File:
1 edited

Legend:

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

    r5055 r5397  
    372372    /* Check arguments. */ 
    373373    PJ_ASSERT_RETURN(endpt!=NULL && count>0 && tags, PJ_EINVAL); 
     374    PJ_ASSERT_RETURN(count <= PJSIP_GENERIC_ARRAY_MAX_COUNT, PJ_ETOOMANY); 
    374375    PJ_ASSERT_RETURN(htype==PJSIP_H_ACCEPT ||  
    375376                     htype==PJSIP_H_ALLOW || 
Note: See TracChangeset for help on using the changeset viewer.