commit 929fa491911fd202bb0152540d7775f090befa32
Author: Jakub Bogusz <[email protected]>
Date:   Sun Jul 18 10:20:13 2021 +0200

    - added bounds patch to fix possible out of bounds strcmp warning
    - added gcc patch to fix missing include

 mediastreamer-bounds.patch | 11 +++++++++++
 mediastreamer-gcc.patch    | 10 ++++++++++
 mediastreamer.spec         |  4 ++++
 3 files changed, 25 insertions(+)
---
diff --git a/mediastreamer.spec b/mediastreamer.spec
index 7827c13..481ef59 100644
--- a/mediastreamer.spec
+++ b/mediastreamer.spec
@@ -41,6 +41,8 @@ Patch5:               %{name}-cmake-SDL.patch
 Patch6:                %{name}-types.patch
 Patch7:                %{name}-gsm.patch
 Patch8:                %{name}-cmake-upnp.patch
+Patch9:                %{name}-bounds.patch
+Patch10:       %{name}-gcc.patch
 URL:           http://www.linphone.org/technical-corner/mediastreamer2/overview
 %{?with_opengl:BuildRequires:  OpenGL-GLX-devel}
 %{?with_sdl:BuildRequires:     SDL-devel >= 1.2.0}
@@ -164,6 +166,8 @@ Statyczne biblioteki mediastreamer.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
+%patch10 -p1
 
 # cmake checks for python3, so don't require python 2 as well
 %{__sed} -i -e '1s,/usr/bin/python$,%{__python3},' tools/xxd.py
diff --git a/mediastreamer-bounds.patch b/mediastreamer-bounds.patch
new file mode 100644
index 0000000..0bbe15b
--- /dev/null
+++ b/mediastreamer-bounds.patch
@@ -0,0 +1,11 @@
+--- mediastreamer2-4.5.22/src/audiofilters/pulseaudio.c.orig   2021-06-24 
23:55:04.000000000 +0200
++++ mediastreamer2-4.5.22/src/audiofilters/pulseaudio.c        2021-07-18 
10:10:08.244595475 +0200
+@@ -229,7 +229,7 @@
+  * output: sink and bidirectionnal cards into sink list, source only card 
into source list
+  * merging is based on pulse audio card description */
+ int pulse_card_compare(pa_device_t *sink, pa_device_t *source) {
+-      return strncmp(sink->description, source->description, 512);
++      return strncmp(sink->description, source->description, PA_STRING_SIZE);
+ }
+ 
+ static void pulse_card_merge_lists(pa_device_t *pa_device, bctbx_list_t 
**pa_source_list) {
diff --git a/mediastreamer-gcc.patch b/mediastreamer-gcc.patch
new file mode 100644
index 0000000..e1d4850
--- /dev/null
+++ b/mediastreamer-gcc.patch
@@ -0,0 +1,10 @@
+--- mediastreamer2-4.5.22/src/utils/mkv_reader.cpp.orig        2021-06-24 
23:55:04.000000000 +0200
++++ mediastreamer2-4.5.22/src/utils/mkv_reader.cpp     2021-07-18 
09:55:27.905014183 +0200
+@@ -20,6 +20,7 @@
+ #include <algorithm>
+ #include <array>
+ #include <cwchar>
++#include <limits>
+ #include <list>
+ #include <memory>
+ #include <vector>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mediastreamer.git/commitdiff/929fa491911fd202bb0152540d7775f090befa32

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to