From: Richard Levitte Date: Wed, 16 Nov 2022 06:46:28 +0000 (+0100) Subject: Ensure that SIZE_MAX is defined where OSSL_SSIZE_MAX is used. X-Git-Tag: openssl-3.2.0-alpha1~1716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a298b00112e50718acc1fdd40b9bce482112cbf;p=thirdparty%2Fopenssl.git Ensure that SIZE_MAX is defined where OSSL_SSIZE_MAX is used. include/openssl/e_os2.h defines OSSL_SSIZE_MAX in terms of SIZE_MAX as a fallback. This doesn't work well on platforms where SIZE_MAX isn't defined, so we must ensure that it's defined by including "internal/numbers.h". Since this is compensating for operating system discrepancies, it's reasonable to make this change in include/internal/e_os.h. Reviewed-by: Hugo Landau Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/19693) --- diff --git a/include/internal/e_os.h b/include/internal/e_os.h index 6fc1c74c97c..042b45b3f11 100644 --- a/include/internal/e_os.h +++ b/include/internal/e_os.h @@ -16,6 +16,7 @@ # include # include # include "internal/nelem.h" +# include "internal/numbers.h" /* Ensure the definition of SIZE_MAX */ /* * contains what we can justify to make visible to the