Blame SOURCES/e2fsprogs-1.45.5-Fix-UBSan-when-shifting-1LL-63.patch

393826
From d7968909c6b503c3c96d36ae2a686b1b07308077 Mon Sep 17 00:00:00 2001
393826
From: Theodore Ts'o <tytso@mit.edu>
393826
Date: Mon, 4 Nov 2019 21:22:54 -0500
393826
Subject: [PATCH 03/10] Fix UBSan when shifting (1LL << 63)
393826
393826
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
393826
---
393826
 lib/ext2fs/qcow2.h | 4 ++--
393826
 misc/e2image.c     | 2 +-
393826
 2 files changed, 3 insertions(+), 3 deletions(-)
393826
393826
diff --git a/lib/ext2fs/qcow2.h b/lib/ext2fs/qcow2.h
393826
index 5576348a..b649c9cf 100644
393826
--- a/lib/ext2fs/qcow2.h
393826
+++ b/lib/ext2fs/qcow2.h
393826
@@ -30,8 +30,8 @@
393826
 
393826
 #define QCOW_MAGIC (('Q' << 24) | ('F' << 16) | ('I' << 8) | 0xfb)
393826
 #define QCOW_VERSION		2
393826
-#define QCOW_OFLAG_COPIED	(1LL << 63)
393826
-#define QCOW_OFLAG_COMPRESSED	(1LL << 62)
393826
+#define QCOW_OFLAG_COPIED	(1ULL << 63)
393826
+#define QCOW_OFLAG_COMPRESSED	(1ULL << 62)
393826
 
393826
 #define QCOW_COMPRESSED		1
393826
 #define QCOW_ENCRYPTED		2
393826
diff --git a/misc/e2image.c b/misc/e2image.c
393826
index 3c881fee..30f25432 100644
393826
--- a/misc/e2image.c
393826
+++ b/misc/e2image.c
393826
@@ -54,7 +54,7 @@ extern int optind;
393826
 #include "support/plausible.h"
393826
 #include "../version.h"
393826
 
393826
-#define QCOW_OFLAG_COPIED     (1LL << 63)
393826
+#define QCOW_OFLAG_COPIED     (1ULL << 63)
393826
 #define NO_BLK ((blk64_t) -1)
393826
 
393826
 /* Image types */
393826
-- 
393826
2.21.1
393826