Ignore:
Timestamp:
Jul 1, 2019 7:12:43 AM (5 years ago)
Author:
ming
Message:

Fixed #2209: Insufficient variable storage to contain Expires header field/ parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_msg.h

    r5807 r6035  
    10711071    PJSIP_DECL_HDR_MEMBER(struct pjsip_generic_int_hdr); 
    10721072    /** ivalue */ 
    1073     pj_int32_t ivalue; 
     1073    pj_uint32_t ivalue; 
    10741074} pjsip_generic_int_hdr; 
    10751075 
     
    10881088PJ_DECL(pjsip_generic_int_hdr*) pjsip_generic_int_hdr_create( pj_pool_t *pool, 
    10891089                                                      const pj_str_t *hname, 
    1090                                                       int hvalue ); 
     1090                                                      unsigned hvalue ); 
    10911091 
    10921092 
     
    11111111                                                            void *mem, 
    11121112                                                            const pj_str_t *hname, 
    1113                                                             int value ); 
     1113                                                            unsigned value ); 
    11141114 
    11151115/* **************************************************************************/ 
     
    13501350 
    13511351/* **************************************************************************/ 
     1352 
     1353/** Expires not specified. */ 
     1354#define PJSIP_EXPIRES_NOT_SPECIFIED     ((pj_uint32_t)0xFFFFFFFFUL) 
     1355 
    13521356/** 
    13531357 * Contact header. 
     
    13591363{ 
    13601364    PJSIP_DECL_HDR_MEMBER(struct pjsip_contact_hdr); 
    1361     int             star;           /**< The contact contains only a '*' character */ 
    1362     pjsip_uri      *uri;            /**< URI in the contact. */ 
    1363     int             q1000;          /**< The "q" value times 1000 (to avoid float) */ 
    1364     pj_int32_t      expires;        /**< Expires parameter, otherwise -1 if not present. */ 
    1365     pjsip_param     other_param;    /**< Other parameters, concatenated in a single string. */ 
     1365    int             star;           /**< The contact contains only a '*' 
     1366                                         character                          */ 
     1367    pjsip_uri      *uri;            /**< URI in the contact.                */ 
     1368    int             q1000;          /**< The "q" value times 1000 
     1369                                         (to avoid float)                   */ 
     1370    pj_uint32_t     expires;        /**< Expires parameter, otherwise 
     1371                                         PJSIP_EXPIRES_NOT_SPECIFIED 
     1372                                         if not present.                    */ 
     1373    pjsip_param     other_param;    /**< Other parameters, concatenated in 
     1374                                         a single string.                   */ 
    13661375} pjsip_contact_hdr; 
    13671376 
     
    14421451 */ 
    14431452PJ_DECL(pjsip_expires_hdr*) pjsip_expires_hdr_create( pj_pool_t *pool, 
    1444                                                       int value); 
     1453                                                      unsigned value); 
    14451454 
    14461455/** 
     
    14611470PJ_DECL(pjsip_expires_hdr*) pjsip_expires_hdr_init( pj_pool_t *pool, 
    14621471                                                    void *mem, 
    1463                                                     int value ); 
     1472                                                    unsigned value ); 
    14641473 
    14651474 
     
    15651574 */ 
    15661575PJ_DECL(pjsip_max_fwd_hdr*)  
    1567 pjsip_max_fwd_hdr_create(pj_pool_t *pool, int value); 
     1576pjsip_max_fwd_hdr_create(pj_pool_t *pool, unsigned value); 
    15681577 
    15691578 
     
    15841593 */ 
    15851594PJ_DECL(pjsip_max_fwd_hdr*)  
    1586 pjsip_max_fwd_hdr_init( pj_pool_t *pool, void *mem, int value ); 
     1595pjsip_max_fwd_hdr_init( pj_pool_t *pool, void *mem, unsigned value ); 
    15871596 
    15881597 
     
    16021611 */ 
    16031612PJ_DECL(pjsip_min_expires_hdr*) pjsip_min_expires_hdr_create(pj_pool_t *pool, 
    1604                                                              int value); 
     1613                                                             unsigned value); 
    16051614 
    16061615 
     
    16221631PJ_DECL(pjsip_min_expires_hdr*) pjsip_min_expires_hdr_init( pj_pool_t *pool, 
    16231632                                                            void *mem, 
    1624                                                             int value ); 
     1633                                                            unsigned value ); 
    16251634 
    16261635 
Note: See TracChangeset for help on using the changeset viewer.