libomxil-bellagio: fix build w/ gcc10
Also fix a possible buffer overrun detected by gcc10 and thus revbump for the current gcc.
This commit is contained in:
parent
1015300bad
commit
1cac357abb
2 changed files with 14 additions and 1 deletions
11
srcpkgs/libomxil-bellagio/patches/fix-malloc-size.patch
Normal file
11
srcpkgs/libomxil-bellagio/patches/fix-malloc-size.patch
Normal file
|
@ -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) {
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue