grub2/0452-include-grub-types.h-Add-PRI-GRUB_OFFSET-and-PRI-GRU.patch
Nicolas Frayer 6eaa34fe07 Add several CVE fixes
- Resolves: CVE-2024-45779 CVE-2024-45778 CVE-2025-1118
- Resolves: CVE-2025-0677 CVE-2024-45782 CVE-2025-0690
- Resolves: CVE-2024-45783 CVE-2025-0624 CVE-2024-45776
- Resolves: CVE-2025-0622 CVE-2024-45774 CVE-2024-45775
- Resolves: CVE-2024-45781 CVE-2024-45780
- Resolves: #RHEL-79700
- Resolves: #RHEL-79341
- Resolves: #RHEL-79875
- Resolves: #RHEL-79849
- Resolves: #RHEL-79707
- Resolves: #RHEL-79857
- Resolves: #RHEL-79709
- Resolves: #RHEL-79846
- Resolves: #RHEL-75737
- Resolves: #RHEL-79713
- Resolves: #RHEL-73785
- Resolves: #RHEL-73787
- Resolves: #RHEL-79704
- Resolves: #RHEL-79702

Signed-off-by: Nicolas Frayer <nfrayer@redhat.com>
2025-02-18 19:06:15 +01:00

36 lines
1.4 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Glenn Washburn <development@efficientek.com>
Date: Wed, 28 Jun 2023 02:38:23 -0500
Subject: [PATCH] include/grub/types.h: Add PRI*GRUB_OFFSET and
PRI*GRUB_DISK_ADDR
These are currently always the same as PRI*GRUB_UINT64_T, but they may
not be in the future.
Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
---
include/grub/types.h | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/include/grub/types.h b/include/grub/types.h
index c00842a..1587ff4 100644
--- a/include/grub/types.h
+++ b/include/grub/types.h
@@ -181,10 +181,13 @@ typedef grub_uint64_t grub_properly_aligned_t;
#define GRUB_PROPERLY_ALIGNED_ARRAY(name, size) grub_properly_aligned_t name[((size) + sizeof (grub_properly_aligned_t) - 1) / sizeof (grub_properly_aligned_t)]
/* The type for representing a file offset. */
-typedef grub_uint64_t grub_off_t;
+typedef grub_uint64_t grub_off_t;
+#define PRIxGRUB_OFFSET PRIxGRUB_UINT64_T
+#define PRIuGRUB_OFFSET PRIuGRUB_UINT64_T
/* The type for representing a disk block address. */
-typedef grub_uint64_t grub_disk_addr_t;
+typedef grub_uint64_t grub_disk_addr_t;
+#define PRIxGRUB_DISK_ADDR PRIxGRUB_UINT64_T
/* Byte-orders. */
static inline grub_uint16_t grub_swap_bytes16(grub_uint16_t _x)