From d9cb69f55ee952df9e1a0b2233f8ff8df3dd341f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 27 Oct 2022 09:31:28 +0100 Subject: [PATCH] Resolves: rhbz#2137430 latest upstream release --- fix-size_max-412.patch.1 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 fix-size_max-412.patch.1 diff --git a/fix-size_max-412.patch.1 b/fix-size_max-412.patch.1 new file mode 100644 index 0000000..5b4e2b6 --- /dev/null +++ b/fix-size_max-412.patch.1 @@ -0,0 +1,31 @@ +From 3445fbfe1aceb88a255b90ee1c06df2d05c188b0 Mon Sep 17 00:00:00 2001 +From: lsh123 +Date: Mon, 24 Oct 2022 17:38:59 -0700 +Subject: [PATCH] fix size_max (#412) + +--- + src/cast_helpers.h | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/src/cast_helpers.h b/src/cast_helpers.h +index 67330822..2b670ad1 100644 +--- a/src/cast_helpers.h ++++ b/src/cast_helpers.h +@@ -17,13 +17,9 @@ + #endif /* XMLSEC_PRIVATE */ + + #include ++#include + #include "errors_helpers.h" + +-/* if it is missing */ +-#ifndef SIZE_MAX +-#define SIZE_MAX (~(size_t)0) +-#endif /* SIZE_MAX */ +- + /** + * Helpers for printing out enum values (mostly debugging). + */ +-- +2.38.0.rc2 +