From 3b6325575a8a6b21fec81ccc699dcae77d53fd77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Mon, 10 Sep 2018 12:01:49 +0200 Subject: [PATCH] libomxil-bellagio: fix gcc-8.2.0 build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc-8.2.0 detect and OOB memcpy(3) Signed-off-by: Jürgen Buchmüller --- srcpkgs/libomxil-bellagio/patches/memcpy-bounds.patch | 11 +++++++++++ srcpkgs/libomxil-bellagio/template | 6 +++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 srcpkgs/libomxil-bellagio/patches/memcpy-bounds.patch diff --git a/srcpkgs/libomxil-bellagio/patches/memcpy-bounds.patch b/srcpkgs/libomxil-bellagio/patches/memcpy-bounds.patch new file mode 100644 index 0000000000..9a714f6957 --- /dev/null +++ b/srcpkgs/libomxil-bellagio/patches/memcpy-bounds.patch @@ -0,0 +1,11 @@ +--- src/base/omx_base_component.c.orig 2018-09-10 11:38:00.018615437 +0200 ++++ src/base/omx_base_component.c 2018-09-10 11:38:58.672611941 +0200 +@@ -827,7 +827,7 @@ + uuid[0] = (OMX_U32)omx_component; + uuid[1] = getpid(); + uuid[2] = getuid(); +- memcpy(*pComponentUUID, uuid, 3*sizeof(uuid)); ++ memcpy(*pComponentUUID, uuid, sizeof(uuid)); + + DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s for component %p\n", __func__, hComponent); + return OMX_ErrorNone; diff --git a/srcpkgs/libomxil-bellagio/template b/srcpkgs/libomxil-bellagio/template index 4313b91f4d..3d0d85071d 100644 --- a/srcpkgs/libomxil-bellagio/template +++ b/srcpkgs/libomxil-bellagio/template @@ -1,13 +1,13 @@ # Template file for 'libomxil-bellagio' pkgname=libomxil-bellagio version=0.9.3 -revision=1 +revision=2 build_style=gnu-configure configure_args="--disable-static" hostmakedepends="automake libtool doxygen" short_desc="Opensource implementation of the OpenMAX Integration Layer API" maintainer="Jürgen Buchmüller " -license="LGPL-2" +license="LGPL-2.1-or-later" homepage="http://omxil.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/omxil/omxil/Bellagio%20${version}/${pkgname}-${version}.tar.gz" checksum=593c0729c8ef8c1467b3bfefcf355ec19a46dd92e31bfc280e17d96b0934d74c @@ -25,7 +25,7 @@ libomxil-bellagio-devel_package() { depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include - vmove usr/lib/*.so + vmove "usr/lib/*.so" vmove usr/lib/pkgconfig vmove usr/share/doc }