Blame SOURCES/0004-extensions-time-Avoid-undefined-shift.patch

576484
From bda4f46d1a474e5cc13712a0302adcf723e3cc5c Mon Sep 17 00:00:00 2001
576484
From: Phil Sutter <phil@nwl.cc>
576484
Date: Thu, 5 Dec 2019 13:15:01 +0100
576484
Subject: [PATCH] extensions: time: Avoid undefined shift
576484
576484
Value 1 is signed by default and left-shifting by 31 is undefined for
576484
those. Fix this by marking the value as unsigned.
576484
576484
Fixes: ad326ef9f734a ("Add the libxt_time iptables match")
576484
(cherry picked from commit 98b221002960040bf3505811c06025b6b9b6984b)
576484
Signed-off-by: Phil Sutter <psutter@redhat.com>
576484
---
576484
 extensions/libxt_time.c | 2 +-
576484
 1 file changed, 1 insertion(+), 1 deletion(-)
576484
576484
diff --git a/extensions/libxt_time.c b/extensions/libxt_time.c
576484
index 5a8cc5de13031..d001f5b7f448f 100644
576484
--- a/extensions/libxt_time.c
576484
+++ b/extensions/libxt_time.c
576484
@@ -330,7 +330,7 @@ static void time_print_monthdays(uint32_t mask, bool human_readable)
576484
 
576484
 	printf(" ");
576484
 	for (i = 1; i <= 31; ++i)
576484
-		if (mask & (1 << i)) {
576484
+		if (mask & (1u << i)) {
576484
 			if (nbdays++ > 0)
576484
 				printf(",");
576484
 			printf("%u", i);
576484
-- 
576484
2.24.0
576484