libomxil-bellagio: fix gcc-8.2.0 build
gcc-8.2.0 detect and OOB memcpy(3) Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
575f77dee4
commit
3b6325575a
11
srcpkgs/libomxil-bellagio/patches/memcpy-bounds.patch
Normal file
11
srcpkgs/libomxil-bellagio/patches/memcpy-bounds.patch
Normal file
|
@ -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;
|
|
@ -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 <pullmoll@t-online.de>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user