Complete Yocto mirror with license table for TQMa6UL (2038-compliance)
- 264 license table entries with exact download URLs (224/264 resolved) - Complete sources/ directory with all BitBake recipes - Build configuration: tqma6ul-multi-mba6ulx, spaetzle (musl) - Full traceability for Softwarefreigabeantrag - GCC 13.4.0, Linux 6.6.102, U-Boot 2023.04, musl 1.2.4 - License distribution: GPL-2.0 (24), MIT (23), GPL-2.0+ (18), BSD-3 (16)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
From 1761298b73c759c07e4652ada307f68512a75ff1 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Fri, 25 Mar 2022 20:44:41 -0700
|
||||
Subject: [PATCH] iniparser.pc: Make libpath a variable
|
||||
|
||||
Will set according to baselib that yocto exports.
|
||||
|
||||
Upstream-Status: Inappropriate [OE-specific]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
iniparser.pc | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
--- a/iniparser.pc
|
||||
+++ b/iniparser.pc
|
||||
@@ -1,6 +1,6 @@
|
||||
prefix=/usr
|
||||
exec_prefix=/usr
|
||||
-libdir=${exec_prefix}/lib
|
||||
+libdir=${exec_prefix}/@baselib@
|
||||
includedir=${prefix}/include
|
||||
datarootdir=${prefix}/share
|
||||
datadir=${datarootdir}
|
||||
@@ -0,0 +1,65 @@
|
||||
Origin: Debian packaging
|
||||
From: Klee Dienes <klee@mit.edu>
|
||||
Date: Thu, 13 Feb 2014 07:03:26 -0500
|
||||
Subject: Add CMake support.
|
||||
|
||||
---
|
||||
Upstream-Status: Pending
|
||||
|
||||
CMakeLists.txt | 44 ++++++++++++++++++++++++++++++++++++++++++++
|
||||
1 file changed, 44 insertions(+)
|
||||
create mode 100644 CMakeLists.txt
|
||||
|
||||
--- /dev/null
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -0,0 +1,50 @@
|
||||
+cmake_minimum_required (VERSION 2.8.8)
|
||||
+
|
||||
+project (iniparser)
|
||||
+include (GNUInstallDirs)
|
||||
+
|
||||
+include_directories (src)
|
||||
+
|
||||
+set(INIPARSER_SRCS src/dictionary.c src/iniparser.c)
|
||||
+set(INIPARSER_HDRS src/dictionary.h src/iniparser.h)
|
||||
+
|
||||
+add_library(iniparser-shared SHARED ${INIPARSER_SRCS} ${INIPARSER_HDRS})
|
||||
+add_library(iniparser-static STATIC ${INIPARSER_SRCS} ${INIPARSER_HDRS})
|
||||
+
|
||||
+set_target_properties(iniparser-shared PROPERTIES SOVERSION 1)
|
||||
+set_target_properties(iniparser-shared PROPERTIES OUTPUT_NAME iniparser)
|
||||
+set_target_properties(iniparser-static PROPERTIES OUTPUT_NAME iniparser)
|
||||
+
|
||||
+install (TARGETS iniparser-shared
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
+
|
||||
+install (TARGETS iniparser-static
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
+
|
||||
+find_package(Doxygen)
|
||||
+if (NOT DOXYGEN_FOUND)
|
||||
+message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly")
|
||||
+endif()
|
||||
+
|
||||
+file (WRITE ${CMAKE_CURRENT_BINARY_DIR}/iniparser.dox
|
||||
+ "@INCLUDE = ${CMAKE_CURRENT_SOURCE_DIR}/doc/iniparser.dox\n"
|
||||
+ "OUTPUT_DIRECTORY = ${CMAKE_CURRENT_BINARY_DIR}\n"
|
||||
+ )
|
||||
+
|
||||
+add_custom_target (doc ALL
|
||||
+ COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/iniparser.dox
|
||||
+ SOURCES doc/iniparser.dox)
|
||||
+
|
||||
+enable_testing()
|
||||
+
|
||||
+add_test(NAME testsuite
|
||||
+ COMMAND make
|
||||
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/test)
|
||||
+
|
||||
+install (FILES ${INIPARSER_HDRS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/iniparser)
|
||||
+
|
||||
+install (DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${CMAKE_INSTALL_DOCDIR})
|
||||
@@ -0,0 +1,48 @@
|
||||
CVE: CVE-2023-33461
|
||||
Upstream-Status: Backport [https://github.com/ndevilla/iniparser/pull/146/commits/ace9871f65d11b5d73f0b9ee8cf5d2807439442d]
|
||||
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
|
||||
|
||||
|
||||
From ace9871f65d11b5d73f0b9ee8cf5d2807439442d Mon Sep 17 00:00:00 2001
|
||||
From: Antonio <antoniolrt@gmail.com>
|
||||
Date: Fri, 2 Jun 2023 15:03:10 -0300
|
||||
Subject: [PATCH] Handle null return from iniparser_getstring
|
||||
|
||||
Fix handling of NULL returns from iniparser_getstring in
|
||||
iniparser_getboolean, iniparser_getlongint and iniparser_getdouble,
|
||||
avoiding a crash.
|
||||
---
|
||||
src/iniparser.c | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/iniparser.c b/src/iniparser.c
|
||||
index f1d1658..dbceb20 100644
|
||||
--- a/src/iniparser.c
|
||||
+++ b/src/iniparser.c
|
||||
@@ -456,7 +456,7 @@ long int iniparser_getlongint(const dictionary * d, const char * key, long int n
|
||||
const char * str ;
|
||||
|
||||
str = iniparser_getstring(d, key, INI_INVALID_KEY);
|
||||
- if (str==INI_INVALID_KEY) return notfound ;
|
||||
+ if (str==NULL || str==INI_INVALID_KEY) return notfound ;
|
||||
return strtol(str, NULL, 0);
|
||||
}
|
||||
|
||||
@@ -511,7 +511,7 @@ double iniparser_getdouble(const dictionary * d, const char * key, double notfou
|
||||
const char * str ;
|
||||
|
||||
str = iniparser_getstring(d, key, INI_INVALID_KEY);
|
||||
- if (str==INI_INVALID_KEY) return notfound ;
|
||||
+ if (str==NULL || str==INI_INVALID_KEY) return notfound ;
|
||||
return atof(str);
|
||||
}
|
||||
|
||||
@@ -553,7 +553,7 @@ int iniparser_getboolean(const dictionary * d, const char * key, int notfound)
|
||||
const char * c ;
|
||||
|
||||
c = iniparser_getstring(d, key, INI_INVALID_KEY);
|
||||
- if (c==INI_INVALID_KEY) return notfound ;
|
||||
+ if (c==NULL || c==INI_INVALID_KEY) return notfound ;
|
||||
if (c[0]=='y' || c[0]=='Y' || c[0]=='1' || c[0]=='t' || c[0]=='T') {
|
||||
ret = 1 ;
|
||||
} else if (c[0]=='n' || c[0]=='N' || c[0]=='0' || c[0]=='f' || c[0]=='F') {
|
||||
@@ -0,0 +1,37 @@
|
||||
From 072a39a772a38c475e35a1be311304ca99e9de7f Mon Sep 17 00:00:00 2001
|
||||
From: Lars Möllendorf <lars@moellendorf.eu>
|
||||
Date: Sun, 26 Jan 2025 08:48:23 +0100
|
||||
Subject: [PATCH] Fix heap overflow in `iniparser_dumpsection_ini()`
|
||||
|
||||
...reported in #177
|
||||
|
||||
As suggested by the issue reporter this is fixed by returning from
|
||||
`iniparser_dumpsection_ini()` in case the length of the passed section name
|
||||
of dictionary to dump was bigger than the size of the internal buffer used
|
||||
to copy this string to.
|
||||
|
||||
Changelog: changed
|
||||
|
||||
CVE: CVE-2025-0633
|
||||
|
||||
Upstream-Status: Backport [https://gitlab.com/iniparser/iniparser/-/commit/072a39a772a38c475e35a1be311304ca99e9de7f]
|
||||
|
||||
Signed-off-by: Soumya Sambu <soumya.sambu@windriver.com>
|
||||
---
|
||||
src/iniparser.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/iniparser.c b/src/iniparser.c
|
||||
index dbceb20..2aeecf4 100644
|
||||
--- a/src/iniparser.c
|
||||
+++ b/src/iniparser.c
|
||||
@@ -301,6 +301,7 @@ void iniparser_dumpsection_ini(const dictionary * d, const char * s, FILE * f)
|
||||
|
||||
if (d==NULL || f==NULL) return ;
|
||||
if (! iniparser_find_entry(d, s)) return ;
|
||||
+ if (strlen(s) > sizeof(keym)) return;
|
||||
|
||||
seclen = (int)strlen(s);
|
||||
fprintf(f, "\n[%s]\n", s);
|
||||
--
|
||||
2.40.0
|
||||
@@ -0,0 +1,29 @@
|
||||
SUMMARY = "The iniParser library is a simple C library offering INI file parsing services (both reading and writing)."
|
||||
SECTION = "libs"
|
||||
HOMEPAGE = "https://github.com/ndevilla/iniparser"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=e02baf71c76e0650e667d7da133379ac"
|
||||
|
||||
DEPENDS = "doxygen-native"
|
||||
|
||||
PV .= "+git"
|
||||
|
||||
SRC_URI = "git://github.com/ndevilla/iniparser.git;protocol=https;branch=master \
|
||||
file://0001-iniparser.pc-Make-libpath-a-variable.patch \
|
||||
file://Add-CMake-support.patch \
|
||||
file://CVE-2023-33461.patch \
|
||||
file://CVE-2025-0633.patch \
|
||||
"
|
||||
|
||||
SRCREV= "deb85ad4936d4ca32cc2260ce43323d47936410d"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit cmake
|
||||
|
||||
do_install:append() {
|
||||
install -Dm 0644 ${S}/iniparser.pc ${D}${libdir}/pkgconfig/iniparser.pc
|
||||
sed -i -e 's,@baselib@,${baselib},g' ${D}${libdir}/pkgconfig/iniparser.pc
|
||||
}
|
||||
|
||||
BBCLASSEXTEND += "native"
|
||||
Reference in New Issue
Block a user