зеркало из https://github.com/mozilla/gecko-dev.git
Bug 798873 - Signaling - increase max SDP size (temporary until better fix). r=jesup,ekr
This commit is contained in:
Родитель
5a3edf0816
Коммит
9236c6f2f9
|
@ -53,7 +53,7 @@
|
|||
#define SDP_CHOOSE_PARAM (-1)
|
||||
#define SDP_SESSION_LEVEL 0xFFFF
|
||||
|
||||
#define SDP_MAX_LEN 2048
|
||||
#define SDP_MAX_LEN 4096
|
||||
|
||||
#define UNKNOWN_CRYPTO_SUITE "UNKNOWN_CRYPTO_SUITE"
|
||||
#define AES_CM_128_HMAC_SHA1_32 "AES_CM_128_HMAC_SHA1_32"
|
||||
|
|
|
@ -208,7 +208,8 @@ sdp_result_e sdp_build_attribute (sdp_t *sdp_p, u16 level, char **ptr, u16 len)
|
|||
result = sdp_attr[attr_p->type].build_func(sdp_p, attr_p,
|
||||
ptr, (u16)(endbuf_p - *ptr));
|
||||
/* If we ran out of buffer space, though, we must error out */
|
||||
MOZ_ASSERT(endbuf_p - *ptr > 0);
|
||||
/* FIX - re-enable this assert after we check the results from snprintfs in the build_funcs */
|
||||
/* MOZ_ASSERT(endbuf_p - *ptr > 0); */
|
||||
if (endbuf_p - *ptr <= 0)
|
||||
return (SDP_POTENTIAL_SDP_OVERFLOW);
|
||||
|
||||
|
@ -3875,7 +3876,8 @@ sdp_result_e sdp_build_attr_cpar (sdp_t *sdp_p, sdp_attr_t *attr_p,
|
|||
result = sdp_attr[attr_p->type].build_func(sdp_p, attr_p,
|
||||
ptr, (u16)(endbuf_p - *ptr));
|
||||
/* If we ran out of buffer space, though, we must error out */
|
||||
MOZ_ASSERT(endbuf_p - *ptr > 0);
|
||||
/* FIX - re-enable this assert after we check the result from snprintf above */
|
||||
/* MOZ_ASSERT(endbuf_p - *ptr > 0); */
|
||||
if (endbuf_p - *ptr <= 0)
|
||||
return (SDP_POTENTIAL_SDP_OVERFLOW);
|
||||
|
||||
|
|
|
@ -432,13 +432,13 @@ sipsdp_write_to_buf (cc_sdp_t *sdp_info, uint32_t *retbytes)
|
|||
sdp_get_result_name(rc));
|
||||
|
||||
if (rc == SDP_POTENTIAL_SDP_OVERFLOW) {
|
||||
/* SDP may have been truncated. Issue a warning and continue. */
|
||||
/* SDP may have been truncated. Issue an extra warning and abort */
|
||||
CCSIP_DEBUG_ERROR(SIP_F_PREFIX"Build SDP buffer overflow\n", fname);
|
||||
} else {
|
||||
cpr_free(buf);
|
||||
*retbytes = 0;
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
cpr_free(buf);
|
||||
*retbytes = 0;
|
||||
return (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
#include "ccapi.h"
|
||||
|
||||
// RAMC-start
|
||||
#define CCSIP_SDP_BUF_SIZE 2048
|
||||
#define CCSIP_SDP_BUF_SIZE SDP_MAX_LEN
|
||||
|
||||
/* SDP bitmask values */
|
||||
#define CCSIP_SRC_SDP_BIT 0x1
|
||||
|
|
Загрузка…
Ссылка в новой задаче