mcst-linux-kernel/patches-2024.06.26/texinfo-6.1/0006-91601.patch

30 lines
1011 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 3634824fbd83be0089e79f7c037023066503b7ed Mon Sep 17 00:00:00 2001
Date: Thu, 21 Dec 2017 14:32:11 +0300
Subject: Правки по багу 91601
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
gnulib/lib/xalloc-oversized.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnulib/lib/xalloc-oversized.h b/gnulib/lib/xalloc-oversized.h
index 0e579de..5b8730a 100644
--- a/gnulib/lib/xalloc-oversized.h
+++ b/gnulib/lib/xalloc-oversized.h
@@ -36,7 +36,9 @@
sizeof (ptrdiff_t) <= sizeof (size_t), so do not bother to test for
exactly-SIZE_MAX allocations on such hosts; this avoids a test and
branch when S is known to be 1. */
-#if 5 <= __GNUC__ || __has_builtin (__builtin_mul_overflow)
+
+/*bug 91601*/
+#if (5 <= __GNUC__ || __has_builtin (__builtin_mul_overflow)) && (! defined __LCC__)
# define xalloc_oversized(n, s) \
({ size_t __xalloc_size; __builtin_mul_overflow (n, s, &__xalloc_size); })
#else
--
2.16.4