From: Jakub Bogusz Date: Sun, 18 Jul 2021 08:20:13 +0000 (+0200) Subject: - added bounds patch to fix possible out of bounds strcmp warning X-Git-Tag: auto/th/mediastreamer-4.5.22-1^2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fmediastreamer.git;a=commitdiff_plain;h=929fa49 - added bounds patch to fix possible out of bounds strcmp warning - added gcc patch to fix missing include --- 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 + #include + #include ++#include + #include + #include + #include 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