diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2017-05-20 08:18:58 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2017-05-20 08:18:58 +0000 |
commit | 46d742e1b15d61b8d4bc91762a301273bc499791 (patch) | |
tree | e0968812cb800f7efb90e84dea7f43743fae9d41 /net/pjsip | |
parent | f5782542b3d877de8ffa13aa6447fac755494d2a (diff) | |
download | ports-46d742e1b15d61b8d4bc91762a301273bc499791.tar.gz ports-46d742e1b15d61b8d4bc91762a301273bc499791.zip |
- Update net/asterisk13 to 13.15.1
- Import patches to fix security issues in net/pjsip [1]
- While here regenerate net/pjsip patches
Obtained from: Asterisk 13.15.1 distribution file [1]
MFH: 2017Q2
Security: 0537afa3-3ce0-11e7-bf9d-001999f8d30b
Security: fab87bff-3ce5-11e7-bf9d-001999f8d30b
Notes
Notes:
svn path=/head/; revision=441292
Diffstat (limited to 'net/pjsip')
-rw-r--r-- | net/pjsip/Makefile | 1 | ||||
-rw-r--r-- | net/pjsip/files/patch-aconfigure | 4 | ||||
-rw-r--r-- | net/pjsip/files/patch-build.mak.in | 2 | ||||
-rw-r--r-- | net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c | 6 | ||||
-rw-r--r-- | net/pjsip/files/patch-pjmedia_build_os-auto.mak.in | 2 | ||||
-rw-r--r-- | net/pjsip/files/patch-pjsip_src_pjsip_sip__multipart.c | 25 | ||||
-rw-r--r-- | net/pjsip/files/patch-pjsip_src_pjsip_sip__transaction.c | 12 | ||||
-rw-r--r-- | net/pjsip/files/patch-third__party_build_os-auto.mak.in | 2 |
8 files changed, 46 insertions, 8 deletions
diff --git a/net/pjsip/Makefile b/net/pjsip/Makefile index c811495a8618..e488d68d9551 100644 --- a/net/pjsip/Makefile +++ b/net/pjsip/Makefile @@ -2,6 +2,7 @@ PORTNAME= pjsip PORTVERSION= 2.6 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.pjsip.org/release/${PORTVERSION}/ DISTNAME= pjproject-${DISTVERSION} diff --git a/net/pjsip/files/patch-aconfigure b/net/pjsip/files/patch-aconfigure index 951f96798079..5547aa100765 100644 --- a/net/pjsip/files/patch-aconfigure +++ b/net/pjsip/files/patch-aconfigure @@ -1,6 +1,6 @@ --- aconfigure.orig 2017-01-25 11:23:08 UTC +++ aconfigure -@@ -6310,14 +6310,7 @@ $as_echo "Checking sound device backend. +@@ -6310,14 +6310,7 @@ $as_echo "Checking sound device backend... null sound" ;; *) ac_pjmedia_snd=alsa @@ -24,7 +24,7 @@ fi for ac_prog in pkg-config "python pkgconfig.py" -@@ -8493,7 +8486,7 @@ $as_echo "Checking if libwebrtc is disab +@@ -8493,7 +8486,7 @@ $as_echo "Checking if libwebrtc is disabled...no" >&6; ac_webrtc_instset=sse2 ac_webrtc_cflags="-msse2" ;; diff --git a/net/pjsip/files/patch-build.mak.in b/net/pjsip/files/patch-build.mak.in index 630811628556..ce1ab0ea4bd7 100644 --- a/net/pjsip/files/patch-build.mak.in +++ b/net/pjsip/files/patch-build.mak.in @@ -1,6 +1,6 @@ --- build.mak.in.orig 2016-08-25 01:36:33 UTC +++ build.mak.in -@@ -106,7 +106,7 @@ APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/t +@@ -106,7 +106,7 @@ APP_THIRD_PARTY_LIB_FILES += $(PJ_DIR)/third_party/lib endif endif diff --git a/net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c b/net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c index 3daf5e8118ac..1b4e3229b9aa 100644 --- a/net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c +++ b/net/pjsip/files/patch-pjlib_src_pj_ssl__sock__ossl.c @@ -9,7 +9,7 @@ # include <openssl/obj_mac.h> -@@ -112,7 +112,7 @@ static unsigned get_nid_from_cid(unsigne +@@ -112,7 +112,7 @@ static unsigned get_nid_from_cid(unsigned cid) #endif @@ -27,7 +27,7 @@ openssl_curves_num = SSL_get_shared_curve(ssl,-1); if (openssl_curves_num > PJ_ARRAY_SIZE(openssl_curves)) openssl_curves_num = PJ_ARRAY_SIZE(openssl_curves); -@@ -1069,7 +1069,7 @@ static pj_status_t set_cipher_list(pj_ss +@@ -1069,7 +1069,7 @@ static pj_status_t set_cipher_list(pj_ssl_sock_t *ssoc static pj_status_t set_curves_list(pj_ssl_sock_t *ssock) { @@ -36,7 +36,7 @@ int ret; int curves[PJ_SSL_SOCK_MAX_CURVES]; unsigned cnt; -@@ -1100,7 +1100,7 @@ static pj_status_t set_curves_list(pj_ss +@@ -1100,7 +1100,7 @@ static pj_status_t set_curves_list(pj_ssl_sock_t *ssoc static pj_status_t set_sigalgs(pj_ssl_sock_t *ssock) { diff --git a/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in b/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in index 1d5108499e00..22097645507d 100644 --- a/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in +++ b/net/pjsip/files/patch-pjmedia_build_os-auto.mak.in @@ -1,6 +1,6 @@ --- pjmedia/build/os-auto.mak.in.orig 2016-08-25 01:36:33 UTC +++ pjmedia/build/os-auto.mak.in -@@ -215,50 +215,7 @@ export CFLAGS += -I$(THIRD_PARTY)/webrtc +@@ -215,50 +215,7 @@ export CFLAGS += -I$(THIRD_PARTY)/webrtc/src endif endif diff --git a/net/pjsip/files/patch-pjsip_src_pjsip_sip__multipart.c b/net/pjsip/files/patch-pjsip_src_pjsip_sip__multipart.c new file mode 100644 index 000000000000..c26fa42e95e4 --- /dev/null +++ b/net/pjsip/files/patch-pjsip_src_pjsip_sip__multipart.c @@ -0,0 +1,25 @@ +--- pjsip/src/pjsip/sip_multipart.c.orig 2017-01-24 05:59:05 UTC ++++ pjsip/src/pjsip/sip_multipart.c +@@ -646,13 +646,15 @@ PJ_DEF(pjsip_msg_body*) pjsip_multipart_parse(pj_pool_ + + end_body = curptr; + +- /* The newline preceeding the delimiter is conceptually part of +- * the delimiter, so trim it from the body. +- */ +- if (*(end_body-1) == '\n') +- --end_body; +- if (*(end_body-1) == '\r') +- --end_body; ++ if (end_body > start_body) { ++ /* The newline preceeding the delimiter is conceptually part of ++ * the delimiter, so trim it from the body. ++ */ ++ if (*(end_body-1) == '\n') ++ --end_body; ++ if (*(end_body-1) == '\r') ++ --end_body; ++ } + + /* Now that we have determined the part's boundary, parse it + * to get the header and body part of the part. diff --git a/net/pjsip/files/patch-pjsip_src_pjsip_sip__transaction.c b/net/pjsip/files/patch-pjsip_src_pjsip_sip__transaction.c new file mode 100644 index 000000000000..159312fd0999 --- /dev/null +++ b/net/pjsip/files/patch-pjsip_src_pjsip_sip__transaction.c @@ -0,0 +1,12 @@ +--- pjsip/src/pjsip/sip_transaction.c.orig 2016-02-22 13:36:31 UTC ++++ pjsip/src/pjsip/sip_transaction.c +@@ -288,7 +288,8 @@ static pj_status_t create_tsx_key_2543( pj_pool_t *poo + host = &rdata->msg_info.via->sent_by.host; + + /* Calculate length required. */ +- len_required = 9 + /* CSeq number */ ++ len_required = method->name.slen + /* Method */ ++ 9 + /* CSeq number */ + rdata->msg_info.from->tag.slen + /* From tag. */ + rdata->msg_info.cid->id.slen + /* Call-ID */ + host->slen + /* Via host. */ diff --git a/net/pjsip/files/patch-third__party_build_os-auto.mak.in b/net/pjsip/files/patch-third__party_build_os-auto.mak.in index d0c8fbb8a2d5..9a8eda5e225e 100644 --- a/net/pjsip/files/patch-third__party_build_os-auto.mak.in +++ b/net/pjsip/files/patch-third__party_build_os-auto.mak.in @@ -1,6 +1,6 @@ --- third_party/build/os-auto.mak.in.orig 2016-12-22 09:33:55 UTC +++ third_party/build/os-auto.mak.in -@@ -104,8 +104,7 @@ else ifneq ($(findstring mips,@ac_webrtc +@@ -104,8 +104,7 @@ else ifneq ($(findstring mips,@ac_webrtc_instset@),) else # Generic fixed point WEBRTC_SRC = \ modules/audio_processing/aecm/aecm_core_c.o \ |