Skip to content
Snippets Groups Projects
Commit ec7f6574 authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Adrien Béraud
Browse files

contrib: oversize PJ_ICE_MAX_CAND to prevent crash

PJ_ICE_MAX_CAND was 32 (already increased from 16, value from upstream)
and it's not enough to handle cases with numerous local/remote candidates
like the case when multiple hosts in IPv6 and IPv4 exists.

The value is increased to 256, I hope it's enough...
(my tests show I need 40 entries with 5 local host IPs)

Change-Id: I28aba472a5c19497cbe64b764084841ff1b9e212
Tuleap: #1601
parent dc983a24
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
@@ -233,3 +233,3 @@ @@ -233,3 +233,3 @@
#ifndef PJ_ICE_MAX_CAND #ifndef PJ_ICE_MAX_CAND
-# define PJ_ICE_MAX_CAND 16 -# define PJ_ICE_MAX_CAND 16
+# define PJ_ICE_MAX_CAND 32 +# define PJ_ICE_MAX_CAND 256
#endif #endif
@@ -254,3 +254,3 @@ @@ -254,3 +254,3 @@
#ifndef PJ_ICE_MAX_STUN #ifndef PJ_ICE_MAX_STUN
......
...@@ -33,8 +33,8 @@ ifdef HAVE_IOS ...@@ -33,8 +33,8 @@ ifdef HAVE_IOS
PJPROJECT_OPTIONS += --with-ssl=$(PREFIX) PJPROJECT_OPTIONS += --with-ssl=$(PREFIX)
endif endif
PJPROJECT_EXTRA_CFLAGS = -g -DPJ_ICE_MAX_CAND=32 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 PJPROJECT_EXTRA_CFLAGS = -g -DPJ_ICE_MAX_CAND=256 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000
PJPROJECT_EXTRA_CXXFLAGS = -g -DPJ_ICE_MAX_CAND=32 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 -std=gnu++11 PJPROJECT_EXTRA_CXXFLAGS = -g -DPJ_ICE_MAX_CAND=256 -DPJ_ICE_MAX_CHECKS=150 -DPJ_ICE_COMP_BITS=2 -DPJ_ICE_MAX_STUN=3 -DPJSIP_MAX_PKT_LEN=8000 -std=gnu++11
ifdef HAVE_WIN64 ifdef HAVE_WIN64
PJPROJECT_EXTRA_CFLAGS += -DPJ_WIN64=1 PJPROJECT_EXTRA_CFLAGS += -DPJ_WIN64=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment