git: Security fix for CVE-2022-41903
PATCH 1/1 git: Security fix for CVE-2022-41903
From: Vijay Anusuri <[email protected]>
Upstream-Status: Backport from https://github.com/git/git/commit/a244dc5b & https://github.com/git/git/commit/81dc898d &
https://github.com/git/git/commit/b49f309a & https://github.com/git/git/commit/f6e0b9f3 & https://github.com/git/git/commit/1de69c0c & https://github.com/git/git/commit/48050c42 & https://github.com/git/git/commit/522cc87f & https://github.com/git/git/commit/17d23e8a & https://github.com/git/git/commit/937b71cc & https://github.com/git/git/commit/81c2d4c3 & https://github.com/git/git/commit/f930a239 & https://github.com/git/git/commit/304a50ad
Signed-off-by Vijay Anusuri <[email protected]>
--- .../git/files/CVE-2022-41903-01.patch | 39 ++++ .../git/files/CVE-2022-41903-02.patch | 187 ++++++++++++++++++ .../git/files/CVE-2022-41903-03.patch | 146 ++++++++++++++ .../git/files/CVE-2022-41903-04.patch | 150 ++++++++++++++ .../git/files/CVE-2022-41903-05.patch | 98 +++++++++ .../git/files/CVE-2022-41903-06.patch | 90 +++++++++ .../git/files/CVE-2022-41903-07.patch | 123 ++++++++++++ .../git/files/CVE-2022-41903-08.patch | 67 +++++++ .../git/files/CVE-2022-41903-09.patch | 162 +++++++++++++++ .../git/files/CVE-2022-41903-10.patch | 99 ++++++++++ .../git/files/CVE-2022-41903-11.patch | 90 +++++++++ .../git/files/CVE-2022-41903-12.patch | 124 ++++++++++++ meta/recipes-devtools/git/git.inc | 12 ++ 13 files changed, 1387 insertions(+) create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-01.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-02.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-03.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-04.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-05.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-06.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-07.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-08.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-09.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-10.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-11.patch create mode 100644 meta/recipes-devtools/git/files/CVE-2022-41903-12.patch
meta/recipes-devtools/git/files/CVE-2022-41903-01.patch new file +39 -0
@@ -0,0 +1,39 @@ +From a244dc5b0a629290881641467c7a545de7508ab2 Mon Sep 17 00:00:00 2001 +From: Carlo Marcelo Arenas Belón <[email protected]> +Date: Tue, 2 Nov 2021 15:46:06 +0000 +Subject: [PATCH 01/12] test-lib: add prerequisite for 64-bit platforms + +Allow tests that assume a 64-bit `size_t` to be skipped in 32-bit +platforms and regardless of the size of `long`. + +This imitates the `LONG_IS_64BIT` prerequisite. + +Signed-off-by: Carlo Marcelo Arenas Belón <[email protected]> +Signed-off-by: Johannes Schindelin <[email protected]> +Signed-off-by: Junio C Hamano <[email protected]> + +Upstream-Status: Backport [https://github.com/git/git/commit/a244dc5b0a629290881641467c7a545de7508ab2] +CVE: CVE-2022-41903 +Signed-off-by: Vijay Anusuri <[email protected]> +--- + t/test-lib.sh | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/t/test-lib.sh b/t/test-lib.sh +index e06fa02..db5ec2f 100644 +--- a/t/test-lib.sh ++++ b/t/test-lib.sh +@@ -1613,6 +1613,10 @@ build_option () { + sed -ne "s/^$1: //p" + } + ++test_lazy_prereq SIZE_T_IS_64BIT ' ++ test 8 -eq "$(build_option sizeof-size_t)" ++' ++ + test_lazy_prereq LONG_IS_64BIT ' + test 8 -le "$(build_option sizeof-long)" + ' +-- +2.25.1 +
meta/recipes-devtools/git/files/CVE-2022-41903-02.patch new file +187 -0
187 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-03.patch new file +146 -0
146 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-04.patch new file +150 -0
150 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-05.patch new file +98 -0
98 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-06.patch new file +90 -0
90 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-07.patch new file +123 -0
123 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-08.patch new file +67 -0
67 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-09.patch new file +162 -0
162 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-10.patch new file +99 -0
99 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-11.patch new file +90 -0
90 lines not on this page · raw message
meta/recipes-devtools/git/files/CVE-2022-41903-12.patch new file +124 -0
124 lines not on this page · raw message
meta/recipes-devtools/git/git.inc +12 -0
@@ -12,6 +12,18 @@ SRC_URI = "${KERNELORG_MIRROR}/software/scm/git/git-${PV}.tar.gz;name=tarball \ file://fixsort.patch \ file://CVE-2021-40330.patch \ file://CVE-2022-23521.patch \ + file://CVE-2022-41903-01.patch \ + file://CVE-2022-41903-02.patch \ + file://CVE-2022-41903-03.patch \ + file://CVE-2022-41903-04.patch \ + file://CVE-2022-41903-05.patch \ + file://CVE-2022-41903-06.patch \ + file://CVE-2022-41903-07.patch \ + file://CVE-2022-41903-08.patch \ + file://CVE-2022-41903-09.patch \ + file://CVE-2022-41903-10.patch \ + file://CVE-2022-41903-11.patch \ + file://CVE-2022-41903-12.patch \ " S = "${WORKDIR}/git-${PV}"
Signature · 1 line
2.25.1