diff options
Diffstat (limited to 'meta/recipes-devtools/git/files/CVE-2022-41903-01.patch')
-rw-r--r-- | meta/recipes-devtools/git/files/CVE-2022-41903-01.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-devtools/git/files/CVE-2022-41903-01.patch b/meta/recipes-devtools/git/files/CVE-2022-41903-01.patch new file mode 100644 index 0000000000..87091abd47 --- /dev/null +++ b/meta/recipes-devtools/git/files/CVE-2022-41903-01.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From a244dc5b0a629290881641467c7a545de7508ab2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Carlo Marcelo Arenas Belón <carenas@gmail.com> | ||
3 | Date: Tue, 2 Nov 2021 15:46:06 +0000 | ||
4 | Subject: [PATCH 01/12] test-lib: add prerequisite for 64-bit platforms | ||
5 | |||
6 | Allow tests that assume a 64-bit `size_t` to be skipped in 32-bit | ||
7 | platforms and regardless of the size of `long`. | ||
8 | |||
9 | This imitates the `LONG_IS_64BIT` prerequisite. | ||
10 | |||
11 | Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com> | ||
12 | Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> | ||
13 | Signed-off-by: Junio C Hamano <gitster@pobox.com> | ||
14 | |||
15 | Upstream-Status: Backport [https://github.com/git/git/commit/a244dc5b0a629290881641467c7a545de7508ab2] | ||
16 | CVE: CVE-2022-41903 | ||
17 | Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> | ||
18 | --- | ||
19 | t/test-lib.sh | 4 ++++ | ||
20 | 1 file changed, 4 insertions(+) | ||
21 | |||
22 | diff --git a/t/test-lib.sh b/t/test-lib.sh | ||
23 | index e06fa02..db5ec2f 100644 | ||
24 | --- a/t/test-lib.sh | ||
25 | +++ b/t/test-lib.sh | ||
26 | @@ -1613,6 +1613,10 @@ build_option () { | ||
27 | sed -ne "s/^$1: //p" | ||
28 | } | ||
29 | |||
30 | +test_lazy_prereq SIZE_T_IS_64BIT ' | ||
31 | + test 8 -eq "$(build_option sizeof-size_t)" | ||
32 | +' | ||
33 | + | ||
34 | test_lazy_prereq LONG_IS_64BIT ' | ||
35 | test 8 -le "$(build_option sizeof-long)" | ||
36 | ' | ||
37 | -- | ||
38 | 2.25.1 | ||
39 | |||