From d8e0e078059afdbe3e358f841c5284ed8848e2d4 Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Thu, 4 Sep 2025 12:21:04 +0200 Subject: [PATCH] Correct format specifier for partition size to prevent stack corruption --- xtldr/volume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtldr/volume.c b/xtldr/volume.c index fa264389..74b6166b 100644 --- a/xtldr/volume.c +++ b/xtldr/volume.c @@ -191,7 +191,7 @@ BlEnumerateBlockDevices() /* Print debug message */ BlDebugPrint(L"Found Hard Disk partition (DiskNumber: %lu, PartNumber: %lu, " - L"MBRType: %u, GUID: {%V}, PartSize: %uB) %S\n", + L"MBRType: %u, GUID: {%V}, PartSize: %lluB) %S\n", DriveNumber, PartitionNumber, HDPath->MBRType, PartitionGuid, HDPath->PartitionSize * Media->BlockSize, (DriveType & XTBL_BOOT_DEVICE_ESP) ? L"(ESP)" : L"");