Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
From f7ca0035d17a663f55668e662b840afce7b86112 Mon Sep 17 00:00:00 2001
From: Christian Voegl <cvoegl@suse.com>
Date: Wed, 27 Oct 2021 11:25:18 +0200
Subject: [PATCH] In stamp always advance the pointer if *p= 0xef
The current implementation only advanced if 0xef is followed
by two non-zero bytes. In case of malformed input (0xef should be
the start byte of a three byte character) this leads to an infinite
loop. (CVE-2021-42260)
CVE: CVE-2021-42260
Upstream: https://sourceforge.net/p/tinyxml/git/merge-requests/1
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
tinyxmlparser.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/tinyxmlparser.cpp b/src/tinyxmlparser.cpp
index 81b7eae..8aa0dfa 100755
--- a/src/tinyxmlparser.cpp
+++ b/src/tinyxmlparser.cpp
@@ -274,6 +274,12 @@ void TiXmlParsingData::Stamp( const char* now, TiXmlEncoding encoding )
else
{ p +=3; ++col; } // A normal character.
}
+ else
+ {
+ // TIXML_UTF_LEAD_0 (239) is the start character of a 3 byte sequence, so
+ // there is something wrong here. Just advance the pointer to evade infinite loops
+ ++p;
+ }
}
else
{
--
2.34.1

View File

@@ -0,0 +1,33 @@
From: Guilhem Moulin <guilhem@debian.org>
Date: Sat, 30 Dec 2023 14:15:54 +0100
Subject: Avoid reachable assertion via crafted XML document with a '\0'
located after whitespace
Upstream: https://salsa.debian.org/debian/tinyxml/-/raw/2366e1f23d059d4c20c43c54176b6bd78d6a83fc/debian/patches/CVE-2023-34194.patch
CVE: CVE-2023-34194
Bug: https://www.forescout.com/resources/sierra21-vulnerabilities
Bug-Debian: https://bugs.debian.org/1059315
Bug-Debian: https://security-tracker.debian.org/tracker/CVE-2023-34194
Bug-Debian: https://security-tracker.debian.org/tracker/CVE-2023-40462
Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
---
tinyxmlparser.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/tinyxmlparser.cpp b/src/tinyxmlparser.cpp
index 8aa0dfa..1601962 100644
--- a/src/tinyxmlparser.cpp
+++ b/src/tinyxmlparser.cpp
@@ -1606,6 +1606,10 @@ const char* TiXmlDeclaration::Parse( const char* p, TiXmlParsingData* data, TiXm
}
p = SkipWhiteSpace( p, _encoding );
+ if ( !p || !*p )
+ {
+ break;
+ }
if ( StringEqual( p, "version", true, _encoding ) )
{
TiXmlAttribute attrib;

11
package/tinyxml/Config.in Normal file
View File

@@ -0,0 +1,11 @@
config BR2_PACKAGE_TINYXML
bool "tinyxml"
depends on BR2_INSTALL_LIBSTDCPP
help
TinyXML is a simple, small, C++ XML parser that can be
easily integrating into other programs.
https://github.com/leethomason/tinyxml2
comment "tinyxml needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP

View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 8164c9ad48b9028667768a584d62f7760cfbfb90d0dd6214ad174403058da10c tinyxml-2.6.2_2.tar.gz
sha256 a65b8363834ccbe31ab7b49dcba723ed204622df30326793e0121435624c1a8d README

View File

@@ -0,0 +1,23 @@
################################################################################
#
# tinyxml
#
################################################################################
TINYXML_VERSION = 2.6.2_2
TINYXML_SITE = http://mirrors.xbmc.org/build-deps/sources
# AUTORECONF is needed because the XBMC's version of TinyXML contains a
# configure.ac which is not present in mainline.
TINYXML_AUTORECONF = YES
TINYXML_INSTALL_STAGING = YES
TINYXML_LICENSE = Zlib
TINYXML_LICENSE_FILES = README
TINYXML_CPE_ID_VERSION = $(firstword $(subst _,$(space),$(TINYXML_VERSION)))
# 0001-In-stamp-always-advance-the-pointer-if-p-0xef.patch
TINYXML_IGNORE_CVES += CVE-2021-42260
# 0002-Avoid-reachable-assertion-via-crafted-XML-document.patch
TINYXML_IGNORE_CVES += CVE-2023-34194
$(eval $(autotools-package))