summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormicmac12020-05-12 18:26:47 +0000
committerGitHub2020-05-12 18:26:47 +0000
commit2bf1a883925f183c09390d0ede7ee81a69557cb0 (patch)
tree84e12a55a2143ed3d87409a994f4d3ea2cbcb711
parent7408b6245fa03bb6716a062b03aff0c128179e4e (diff)
parent3c203fe568f39019b3c8c18e9eb783f8a18bd375 (diff)
downloadtelephony-2bf1a883925f183c09390d0ede7ee81a69557cb0.tar.gz
Merge pull request #529 from micmac1/fs1103
freeswitch-stable: bump to 1.10.3 (also up libks + signalwire-c)
-rw-r--r--libs/libks/Makefile10
-rw-r--r--libs/libks/patches/03-fix-flags.patch6
-rw-r--r--libs/signalwire-client-c/Makefile12
-rw-r--r--net/freeswitch-stable/Makefile6
-rw-r--r--net/freeswitch-stable/patches/030-fix-configure-ac.patch2
-rw-r--r--net/freeswitch-stable/patches/120-fix-copts.patch2
-rw-r--r--net/freeswitch-stable/patches/140-libvpx-cross.patch2
-rw-r--r--net/freeswitch-stable/patches/390-t38-reinvite-488-fix.patch2
-rw-r--r--net/freeswitch-stable/patches/400-CVE-2019-9232_9325_9371_9433.patch211
-rw-r--r--net/freeswitch-stable/patches/410-fix-typo-in-switch_xml_h.patch11
10 files changed, 22 insertions, 242 deletions
diff --git a/libs/libks/Makefile b/libs/libks/Makefile
index 7dc82fc..9dcfb76 100644
--- a/libs/libks/Makefile
+++ b/libs/libks/Makefile
@@ -9,12 +9,12 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libks
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://github.com/signalwire/$(PKG_NAME).git
-PKG_SOURCE_DATE=2019-09-18
-PKG_SOURCE_VERSION:=df72c4c61a2deed414541735086d03259aec9679
+PKG_VERSION:=1.6.0
PKG_RELEASE:=1
-PKG_MIRROR_HASH:=3005101d3c80ec7d03d2097e538506a5090ded65b71169c279194ab950fd7cb5
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/signalwire/libks/tar.gz/$(PKG_VERSION)?
+PKG_HASH:=1638b489df1e7c4ef81ebe08c2b6256d942a2ac1b477fb36f3920b9d1f0b7166
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
diff --git a/libs/libks/patches/03-fix-flags.patch b/libs/libks/patches/03-fix-flags.patch
index 937e382..346d52e 100644
--- a/libs/libks/patches/03-fix-flags.patch
+++ b/libs/libks/patches/03-fix-flags.patch
@@ -2,10 +2,10 @@
+++ b/CMakeLists.txt
@@ -11,6 +11,10 @@ option(WITH_LIBBACKTRACE "Enables linkin
# Must include cotire before anything else for auto pch setup
- include(cmake/cotire.cmake)
+ #include(cmake/cotire.cmake)
+# Declare our project, libks
-+project(LibKS VERSION 1.3.0 LANGUAGES C CXX)
++project(LibKS VERSION 1.6.0 LANGUAGES C CXX)
+message("LibKS Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
+
# Load our common utility api and setup the platfomrm and build
@@ -16,7 +16,7 @@
endif()
-# Declare our project, libks
--project(LibKS VERSION 1.3.0 LANGUAGES C CXX)
+-project(LibKS VERSION 1.6.0 LANGUAGES C CXX)
-message("LibKS Version ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}")
-
# Set package version
diff --git a/libs/signalwire-client-c/Makefile b/libs/signalwire-client-c/Makefile
index 1255f11..d9ea0b8 100644
--- a/libs/signalwire-client-c/Makefile
+++ b/libs/signalwire-client-c/Makefile
@@ -9,12 +9,14 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=signalwire-client-c
-PKG_SOURCE_PROTO:=git
-PKG_SOURCE_URL:=https://github.com/signalwire/signalwire-c.git
-PKG_SOURCE_DATE=2019-09-20
-PKG_SOURCE_VERSION:=4729b1552e5f3d8a414f5769f5ca85b4e7572305
+PKG_VERSION:=1.3.0
PKG_RELEASE:=1
-PKG_MIRROR_HASH:=eef97655caf076d35ee51b23de6a41b76becb6bf951348b9f981c35bb807d803
+
+PKG_SOURCE:=signalwire-c-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/signalwire/signalwire-c/tar.gz/$(PKG_VERSION)?
+PKG_HASH:=77bc7fbd8405283ef64ccbc22fba6687fc936ed76fafcc15e7e90290e2906884
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/signalwire-c-$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
diff --git a/net/freeswitch-stable/Makefile b/net/freeswitch-stable/Makefile
index 334121a..b6b4bd8 100644
--- a/net/freeswitch-stable/Makefile
+++ b/net/freeswitch-stable/Makefile
@@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk
PRG_NAME:=freeswitch
PKG_NAME:=$(PRG_NAME)-stable
-PKG_VERSION:=1.10.2
-PKG_RELEASE:=5
+PKG_VERSION:=1.10.3
+PKG_RELEASE:=1
PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
PKG_SOURCE:=$(PRG_NAME)-$(PKG_VERSION).-release.tar.xz
PKG_SOURCE_URL:=https://files.$(PRG_NAME).org/releases/$(PRG_NAME)
-PKG_HASH:=1fd46dee82ecc52ac90ebab6bd454e34c64950fae7d6dc0589c8daa14bfc7d34
+PKG_HASH:=2d7db07a64ee2f19f9b6e3a4ce76fa42e0fe46c29d95edf1b690a3df3729f307
PKG_CPE_ID:=cpe:/a:freeswitch:freeswitch
diff --git a/net/freeswitch-stable/patches/030-fix-configure-ac.patch b/net/freeswitch-stable/patches/030-fix-configure-ac.patch
index 8cb4c1e..fa633e9 100644
--- a/net/freeswitch-stable/patches/030-fix-configure-ac.patch
+++ b/net/freeswitch-stable/patches/030-fix-configure-ac.patch
@@ -40,7 +40,7 @@
AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
case $host in
-@@ -1623,13 +1599,7 @@ AC_CHECK_PROG(PERL,perl,[ac_cv_have_perl
+@@ -1627,13 +1603,7 @@ AC_CHECK_PROG(PERL,perl,[ac_cv_have_perl
# -a "x$ac_cv_have_EXTERN_h" != "xno"
if test "x$ac_cv_have_perl" != "xno"; then
diff --git a/net/freeswitch-stable/patches/120-fix-copts.patch b/net/freeswitch-stable/patches/120-fix-copts.patch
index 594612e..4582de6 100644
--- a/net/freeswitch-stable/patches/120-fix-copts.patch
+++ b/net/freeswitch-stable/patches/120-fix-copts.patch
@@ -1,6 +1,6 @@
--- a/configure.ac
+++ b/configure.ac
-@@ -2053,7 +2053,12 @@ AC_SUBST(OUR_DISABLED_INSTALL_MODS)
+@@ -2058,7 +2058,12 @@ AC_SUBST(OUR_DISABLED_INSTALL_MODS)
AC_SUBST(OUR_DISABLED_UNINSTALL_MODS)
AC_SUBST(AM_MAKEFLAGS)
diff --git a/net/freeswitch-stable/patches/140-libvpx-cross.patch b/net/freeswitch-stable/patches/140-libvpx-cross.patch
index 9cf1c3f..15a78c3 100644
--- a/net/freeswitch-stable/patches/140-libvpx-cross.patch
+++ b/net/freeswitch-stable/patches/140-libvpx-cross.patch
@@ -1,6 +1,6 @@
--- a/Makefile.am
+++ b/Makefile.am
-@@ -585,8 +585,15 @@ libs/libedit/src/.libs/libedit.a:
+@@ -587,8 +587,15 @@ libs/libedit/src/.libs/libedit.a:
libs/libzrtp/libzrtp.a:
cd libs/libzrtp && $(MAKE)
diff --git a/net/freeswitch-stable/patches/390-t38-reinvite-488-fix.patch b/net/freeswitch-stable/patches/390-t38-reinvite-488-fix.patch
index ea9c3dc..3492936 100644
--- a/net/freeswitch-stable/patches/390-t38-reinvite-488-fix.patch
+++ b/net/freeswitch-stable/patches/390-t38-reinvite-488-fix.patch
@@ -56,7 +56,7 @@ Date: Fri Oct 18 18:28:07 2019 +0200
--- a/src/mod/endpoints/mod_sofia/sofia.c
+++ b/src/mod/endpoints/mod_sofia/sofia.c
-@@ -6512,6 +6512,7 @@ static void sofia_handle_sip_r_invite(sw
+@@ -6536,6 +6536,7 @@ static void sofia_handle_sip_r_invite(sw
switch_channel_clear_app_flag_key("T38", tech_pvt->channel, CF_APP_T38_REQ);
switch_channel_set_app_flag_key("T38", tech_pvt->channel, CF_APP_T38_FAIL);
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "%s T38 invite failed\n", switch_channel_get_name(tech_pvt->channel));
diff --git a/net/freeswitch-stable/patches/400-CVE-2019-9232_9325_9371_9433.patch b/net/freeswitch-stable/patches/400-CVE-2019-9232_9325_9371_9433.patch
deleted file mode 100644
index 8d844f3..0000000
--- a/net/freeswitch-stable/patches/400-CVE-2019-9232_9325_9371_9433.patch
+++ /dev/null
@@ -1,211 +0,0 @@
-Backports of
-
-From 46e17f0cb4a80b36755c84b8bf15731d3386c08f Mon Sep 17 00:00:00 2001
-From: kyslov <kyslov@google.com>
-Date: Fri, 4 Jan 2019 17:04:09 -0800
-Subject: [PATCH] Fix OOB memory access on fuzzed data
-
-From 0681cff1ad36b3ef8ec242f59b5a6c4234ccfb88 Mon Sep 17 00:00:00 2001
-From: James Zern <jzern@google.com>
-Date: Tue, 24 Jul 2018 21:36:50 -0700
-Subject: [PATCH] vp9: fix OOB read in decoder_peek_si_internal
-
-From f00890eecdf8365ea125ac16769a83aa6b68792d Mon Sep 17 00:00:00 2001
-From: James Zern <jzern@google.com>
-Date: Tue, 11 Dec 2018 18:06:20 -0800
-Subject: [PATCH] update libwebm to libwebm-1.0.0.27-352-g6ab9fcf
-
-From 34d54b04e98dd0bac32e9aab0fbda0bf501bc742 Mon Sep 17 00:00:00 2001
-From: James Zern <jzern@google.com>
-Date: Tue, 9 Apr 2019 18:37:44 -0700
-Subject: [PATCH] update libwebm to libwebm-1.0.0.27-358-gdbf1d10
-
-From 52add5896661d186dec284ed646a4b33b607d2c7 Mon Sep 17 00:00:00 2001
-From: Jerome Jiang <jianj@google.com>
-Date: Wed, 23 May 2018 15:43:00 -0700
-Subject: [PATCH] VP8: Fix use-after-free in postproc.
-
-to address CVE-2019-9232 CVE-2019-9325 CVE-2019-9371 CVE-2019-9433
-
---- a/libs/libvpx/test/decode_api_test.cc
-+++ b/libs/libvpx/test/decode_api_test.cc
-@@ -138,8 +138,30 @@ TEST(DecodeAPI, Vp9InvalidDecode) {
- EXPECT_EQ(VPX_CODEC_OK, vpx_codec_destroy(&dec));
- }
-
--TEST(DecodeAPI, Vp9PeekSI) {
-+void TestPeekInfo(const uint8_t *const data, uint32_t data_sz,
-+ uint32_t peek_size) {
- const vpx_codec_iface_t *const codec = &vpx_codec_vp9_dx_algo;
-+ // Verify behavior of vpx_codec_decode. vpx_codec_decode doesn't even get
-+ // to decoder_peek_si_internal on frames of size < 8.
-+ if (data_sz >= 8) {
-+ vpx_codec_ctx_t dec;
-+ EXPECT_EQ(VPX_CODEC_OK, vpx_codec_dec_init(&dec, codec, NULL, 0));
-+ EXPECT_EQ((data_sz < peek_size) ? VPX_CODEC_UNSUP_BITSTREAM
-+ : VPX_CODEC_CORRUPT_FRAME,
-+ vpx_codec_decode(&dec, data, data_sz, NULL, 0));
-+ vpx_codec_iter_t iter = NULL;
-+ EXPECT_EQ(NULL, vpx_codec_get_frame(&dec, &iter));
-+ EXPECT_EQ(VPX_CODEC_OK, vpx_codec_destroy(&dec));
-+ }
-+
-+ // Verify behavior of vpx_codec_peek_stream_info.
-+ vpx_codec_stream_info_t si;
-+ si.sz = sizeof(si);
-+ EXPECT_EQ((data_sz < peek_size) ? VPX_CODEC_UNSUP_BITSTREAM : VPX_CODEC_OK,
-+ vpx_codec_peek_stream_info(codec, data, data_sz, &si));
-+}
-+
-+TEST(DecodeAPI, Vp9PeekStreamInfo) {
- // The first 9 bytes are valid and the rest of the bytes are made up. Until
- // size 10, this should return VPX_CODEC_UNSUP_BITSTREAM and after that it
- // should return VPX_CODEC_CORRUPT_FRAME.
-@@ -150,24 +172,18 @@ TEST(DecodeAPI, Vp9PeekSI) {
- };
-
- for (uint32_t data_sz = 1; data_sz <= 32; ++data_sz) {
-- // Verify behavior of vpx_codec_decode. vpx_codec_decode doesn't even get
-- // to decoder_peek_si_internal on frames of size < 8.
-- if (data_sz >= 8) {
-- vpx_codec_ctx_t dec;
-- EXPECT_EQ(VPX_CODEC_OK, vpx_codec_dec_init(&dec, codec, NULL, 0));
-- EXPECT_EQ(
-- (data_sz < 10) ? VPX_CODEC_UNSUP_BITSTREAM : VPX_CODEC_CORRUPT_FRAME,
-- vpx_codec_decode(&dec, data, data_sz, NULL, 0));
-- vpx_codec_iter_t iter = NULL;
-- EXPECT_EQ(NULL, vpx_codec_get_frame(&dec, &iter));
-- EXPECT_EQ(VPX_CODEC_OK, vpx_codec_destroy(&dec));
-- }
--
-- // Verify behavior of vpx_codec_peek_stream_info.
-- vpx_codec_stream_info_t si;
-- si.sz = sizeof(si);
-- EXPECT_EQ((data_sz < 10) ? VPX_CODEC_UNSUP_BITSTREAM : VPX_CODEC_OK,
-- vpx_codec_peek_stream_info(codec, data, data_sz, &si));
-+ TestPeekInfo(data, data_sz, 10);
-+ }
-+}
-+
-+TEST(DecodeAPI, Vp9PeekStreamInfoTruncated) {
-+ // This profile 1 header requires 10.25 bytes, ensure
-+ // vpx_codec_peek_stream_info doesn't over read.
-+ const uint8_t profile1_data[10] = { 0xa4, 0xe9, 0x30, 0x68, 0x53,
-+ 0xe9, 0x30, 0x68, 0x53, 0x04 };
-+
-+ for (uint32_t data_sz = 1; data_sz <= 10; ++data_sz) {
-+ TestPeekInfo(profile1_data, data_sz, 11);
- }
- }
- #endif // CONFIG_VP9_DECODER
---- a/libs/libvpx/third_party/libwebm/mkvparser/mkvparser.cc
-+++ b/libs/libvpx/third_party/libwebm/mkvparser/mkvparser.cc
-@@ -5307,8 +5307,8 @@ long VideoTrack::Parse(Segment* pSegment
-
- const long long stop = pos + s.size;
-
-- Colour* colour = NULL;
-- Projection* projection = NULL;
-+ std::unique_ptr<Colour> colour_ptr;
-+ std::unique_ptr<Projection> projection_ptr;
-
- while (pos < stop) {
- long long id, size;
-@@ -5357,11 +5357,19 @@ long VideoTrack::Parse(Segment* pSegment
- if (rate <= 0)
- return E_FILE_FORMAT_INVALID;
- } else if (id == libwebm::kMkvColour) {
-- if (!Colour::Parse(pReader, pos, size, &colour))
-+ Colour* colour = NULL;
-+ if (!Colour::Parse(pReader, pos, size, &colour)) {
- return E_FILE_FORMAT_INVALID;
-+ } else {
-+ colour_ptr.reset(colour);
-+ }
- } else if (id == libwebm::kMkvProjection) {
-- if (!Projection::Parse(pReader, pos, size, &projection))
-+ Projection* projection = NULL;
-+ if (!Projection::Parse(pReader, pos, size, &projection)) {
- return E_FILE_FORMAT_INVALID;
-+ } else {
-+ projection_ptr.reset(projection);
-+ }
- }
-
- pos += size; // consume payload
-@@ -5392,8 +5400,8 @@ long VideoTrack::Parse(Segment* pSegment
- pTrack->m_display_unit = display_unit;
- pTrack->m_stereo_mode = stereo_mode;
- pTrack->m_rate = rate;
-- pTrack->m_colour = colour;
-- pTrack->m_projection = projection;
-+ pTrack->m_colour = colour_ptr.release();
-+ pTrack->m_projection = projection_ptr.release();
-
- pResult = pTrack;
- return 0; // success
---- a/libs/libvpx/vp8/common/postproc.c
-+++ b/libs/libvpx/vp8/common/postproc.c
-@@ -65,7 +65,7 @@ void vp8_deblock(VP8_COMMON *cm, YV12_BU
- double level = 6.0e-05 * q * q * q - .0067 * q * q + .306 * q + .0065;
- int ppl = (int)(level + .5);
-
-- const MODE_INFO *mode_info_context = cm->show_frame_mi;
-+ const MODE_INFO *mode_info_context = cm->mi;
- int mbr, mbc;
-
- /* The pixel thresholds are adjusted according to if or not the macroblock
---- a/libs/libvpx/vp8/decoder/dboolhuff.h
-+++ b/libs/libvpx/vp8/decoder/dboolhuff.h
-@@ -76,7 +76,7 @@ static int vp8dx_decode_bool(BOOL_DECODE
- }
-
- {
-- register int shift = vp8_norm[range];
-+ const unsigned char shift = vp8_norm[(unsigned char)range];
- range <<= shift;
- value <<= shift;
- count -= shift;
---- a/libs/libvpx/vp9/vp9_dx_iface.c
-+++ b/libs/libvpx/vp9/vp9_dx_iface.c
-@@ -97,7 +97,7 @@ static vpx_codec_err_t decoder_peek_si_i
- const uint8_t *data, unsigned int data_sz, vpx_codec_stream_info_t *si,
- int *is_intra_only, vpx_decrypt_cb decrypt_cb, void *decrypt_state) {
- int intra_only_flag = 0;
-- uint8_t clear_buffer[10];
-+ uint8_t clear_buffer[11];
-
- if (data + data_sz <= data) return VPX_CODEC_INVALID_PARAM;
-
-@@ -158,6 +158,9 @@ static vpx_codec_err_t decoder_peek_si_i
- if (profile > PROFILE_0) {
- if (!parse_bitdepth_colorspace_sampling(profile, &rb))
- return VPX_CODEC_UNSUP_BITSTREAM;
-+ // The colorspace info may cause vp9_read_frame_size() to need 11
-+ // bytes.
-+ if (data_sz < 11) return VPX_CODEC_UNSUP_BITSTREAM;
- }
- rb.bit_offset += REF_FRAMES; // refresh_frame_flags
- vp9_read_frame_size(&rb, (int *)&si->w, (int *)&si->h);
---- a/libs/libvpx/vpx_dsp/bitreader.h
-+++ b/libs/libvpx/vpx_dsp/bitreader.h
-@@ -94,7 +94,7 @@ static INLINE int vpx_read(vpx_reader *r
- }
-
- {
-- register int shift = vpx_norm[range];
-+ const unsigned char shift = vpx_norm[(unsigned char)range];
- range <<= shift;
- value <<= shift;
- count -= shift;
---- a/libs/libvpx/vpx_dsp/bitreader_buffer.c
-+++ b/libs/libvpx/vpx_dsp/bitreader_buffer.c
-@@ -23,7 +23,7 @@ int vpx_rb_read_bit(struct vpx_read_bit_
- rb->bit_offset = off + 1;
- return bit;
- } else {
-- rb->error_handler(rb->error_handler_data);
-+ if (rb->error_handler != NULL) rb->error_handler(rb->error_handler_data);
- return 0;
- }
- }
diff --git a/net/freeswitch-stable/patches/410-fix-typo-in-switch_xml_h.patch b/net/freeswitch-stable/patches/410-fix-typo-in-switch_xml_h.patch
deleted file mode 100644
index 302d4a8..0000000
--- a/net/freeswitch-stable/patches/410-fix-typo-in-switch_xml_h.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/include/switch_xml.h
-+++ b/src/include/switch_xml.h
-@@ -233,7 +233,7 @@ SWITCH_DECLARE(char *) switch_xml_tohtml
- ///\param prn_header add <?xml version..> header too
- ///\param use_utf8_encoding encoding into ampersand entities for UTF-8 chars
- ///\return the xml text string
--#define switch_xml_toxml_buf(xml, buf, buflen, offset, prn_header) switch_xml_toxml_buf(xml, buf, buflen, offset, prn_header, USE_UTF_8_ENCODING);
-+#define switch_xml_toxml_buf(xml, buf, buflen, offset, prn_header) switch_xml_toxml_buf_ex(xml, buf, buflen, offset, prn_header, USE_UTF_8_ENCODING);
- SWITCH_DECLARE(char *) switch_xml_toxml_buf_ex(_In_ switch_xml_t xml, _In_z_ char *buf, _In_ switch_size_t buflen, _In_ switch_size_t offset,
- _In_ switch_bool_t prn_header, switch_bool_t use_utf8_encoding);
-