diff --git a/srcpkgs/libomxil-bellagio/patches/fix-malloc-size.patch b/srcpkgs/libomxil-bellagio/patches/fix-malloc-size.patch new file mode 100644 index 0000000000..0d21fef1ff --- /dev/null +++ b/srcpkgs/libomxil-bellagio/patches/fix-malloc-size.patch @@ -0,0 +1,11 @@ +--- src/omx_create_loaders_linux.c 2011-05-20 07:28:17.000000000 +0200 ++++ src/omx_create_loaders_linux.c 2020-09-25 11:33:11.570142732 +0200 +@@ -95,7 +95,7 @@ + if (isFileExisting) { + loaderFP = fopen(omxloader_registry_filename, "r"); + // dlopen all loaders defined in .omxloaders file +- libraryFileName = malloc(MAX_LINE_LENGTH); ++ libraryFileName = malloc(MAX_LINE_LENGTH+1); + while(1) { + index_readline = 0; + while(index_readline < MAX_LINE_LENGTH) { diff --git a/srcpkgs/libomxil-bellagio/template b/srcpkgs/libomxil-bellagio/template index 3d0d85071d..966de521c4 100644 --- a/srcpkgs/libomxil-bellagio/template +++ b/srcpkgs/libomxil-bellagio/template @@ -1,7 +1,7 @@ # Template file for 'libomxil-bellagio' pkgname=libomxil-bellagio version=0.9.3 -revision=2 +revision=3 build_style=gnu-configure configure_args="--disable-static" hostmakedepends="automake libtool doxygen" @@ -12,6 +12,8 @@ homepage="http://omxil.sourceforge.net" distfiles="${SOURCEFORGE_SITE}/omxil/omxil/Bellagio%20${version}/${pkgname}-${version}.tar.gz" checksum=593c0729c8ef8c1467b3bfefcf355ec19a46dd92e31bfc280e17d96b0934d74c +CFLAGS="-fcommon" + pre_configure() { autoreconf -fi }