commit f71c7537c678697632f3283e66840c9318e17bf9
Author: Jacek Konieczny <j.koniec...@eggsoft.pl>
Date:   Thu Feb 22 14:49:49 2018 +0100

    one more patch from Asterisk added
    
    Release: 5

 0071-sdp_fmtp_attr.patch | 34 ++++++++++++++++++++++++++++++++++
 pjproject.spec           | 12 +++++++-----
 2 files changed, 41 insertions(+), 5 deletions(-)
---
diff --git a/pjproject.spec b/pjproject.spec
index 27498d7..7dccede 100644
--- a/pjproject.spec
+++ b/pjproject.spec
@@ -20,7 +20,7 @@
 Summary:       PJSIP - free and open source multimedia communication library
 Name:          pjproject
 Version:       2.6
-Release:       4
+Release:       5
 License:       GPL v2+
 Group:         Libraries
 Source0:       
http://www.pjsip.org/release/%{version}/%{name}-%{version}.tar.bz2
@@ -41,10 +41,11 @@ Patch107:   
0037-r5576-svn-backport-session-timer-crash.patch
 Patch108:      0048-r5576-svn-backport-tls-crash.patch
 Patch109:      0058-Parse-zero-length-multipart-body-parts-correctly.patch
 Patch110:      0059-Ensure-2543-transaction-key-buffer-is-large-enough.patch
-Patch111:      0070-Set-PJSIP_INV_SUPPORT_UPDATE-correctly-in-pjsip_inv_.patch
-Patch112:      0075-Fixed-2030-Improve-error-handling-in-OpenSSL-socket.patch
-Patch113:      0080-STUN-Fingerprint-with-ICE.patch
-Patch114:      0090-sip_parser-Add-validity-checking-for-numeric-header-.patch
+Patch111:      0071-sdp_fmtp_attr.patch
+Patch112:      0070-Set-PJSIP_INV_SUPPORT_UPDATE-correctly-in-pjsip_inv_.patch
+Patch113:      0075-Fixed-2030-Improve-error-handling-in-OpenSSL-socket.patch
+Patch114:      0080-STUN-Fingerprint-with-ICE.patch
+Patch115:      0090-sip_parser-Add-validity-checking-for-numeric-header-.patch
 URL:           http://www.pjsip.org/
 %{?with_video:BuildRequires:   SDL2-devel}
 BuildRequires: SILK_SDK-devel
@@ -132,6 +133,7 @@ Statyczna biblioteka %{name}.
 %patch112 -p1
 %patch113 -p1
 %patch114 -p1
+%patch115 -p1
 
 cp -p %{SOURCE1} pjlib/include/pj/config_site.h
 
diff --git a/0071-sdp_fmtp_attr.patch b/0071-sdp_fmtp_attr.patch
new file mode 100644
index 0000000..8228d5d
--- /dev/null
+++ b/0071-sdp_fmtp_attr.patch
@@ -0,0 +1,34 @@
+diff --git a/pjmedia/src/pjmedia/sdp.c b/pjmedia/src/pjmedia/sdp.c
+index a3dd80b..6117e07 100644
+--- a/pjmedia/src/pjmedia/sdp.c
++++ b/pjmedia/src/pjmedia/sdp.c
+@@ -256,7 +256,8 @@ PJ_DEF(pj_status_t) pjmedia_sdp_attr_get_rtpmap( const 
pjmedia_sdp_attr *attr,
+ 
+     PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtpmap")==0, PJ_EINVALIDOP);
+ 
+-    PJ_ASSERT_RETURN(attr->value.slen != 0, PJMEDIA_SDP_EINATTR);
++    if (attr->value.slen == 0)
++        return PJMEDIA_SDP_EINATTR;
+ 
+     init_sdp_parser();
+ 
+@@ -341,6 +342,9 @@ PJ_DEF(pj_status_t) pjmedia_sdp_attr_get_fmtp( const 
pjmedia_sdp_attr *attr,
+ 
+     PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "fmtp")==0, PJ_EINVALIDOP);
+ 
++    if (attr->value.slen == 0)
++        return PJMEDIA_SDP_EINATTR;
++
+     /* fmtp BNF:
+      *        a=fmtp:<format> <format specific parameter>
+      */
+@@ -379,6 +383,9 @@ PJ_DEF(pj_status_t) pjmedia_sdp_attr_get_rtcp(const 
pjmedia_sdp_attr *attr,
+ 
+     PJ_ASSERT_RETURN(pj_strcmp2(&attr->name, "rtcp")==0, PJ_EINVALIDOP);
+ 
++    if (attr->value.slen == 0)
++        return PJMEDIA_SDP_EINATTR;
++
+     init_sdp_parser();
+ 
+     /* fmtp BNF:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pjproject.git/commitdiff/f71c7537c678697632f3283e66840c9318e17bf9

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to