mirror of
https://git.yoctoproject.org/poky
synced 2026-02-25 10:59:41 +01:00
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 (From OE-Core rev: d591ac4dfeff7b69086a47c7e88a8127f1d31299) Signed-off-by: Vijay Anusuri <vanusuri@mvista.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
40 lines
1.1 KiB
Diff
40 lines
1.1 KiB
Diff
From a244dc5b0a629290881641467c7a545de7508ab2 Mon Sep 17 00:00:00 2001
|
|
From: Carlo Marcelo Arenas Belón <carenas@gmail.com>
|
|
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 <carenas@gmail.com>
|
|
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
|
|
Signed-off-by: Junio C Hamano <gitster@pobox.com>
|
|
|
|
Upstream-Status: Backport [https://github.com/git/git/commit/a244dc5b0a629290881641467c7a545de7508ab2]
|
|
CVE: CVE-2022-41903
|
|
Signed-off-by: Vijay Anusuri <vanusuri@mvista.com>
|
|
---
|
|
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
|
|
|