From 5cab679a070c74be8138a4ba24ccc0f446cecdf7 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Mon, 18 May 2026 14:25:24 +0300 Subject: [PATCH] nyx: parted: correct gpt validation check This fixes an issue when second sector has garbage data that would cause a spinloop. --- nyx/nyx_gui/frontend/gui_tools_partition_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c index 66ccebda..e627a8b5 100644 --- a/nyx/nyx_gui/frontend/gui_tools_partition_manager.c +++ b/nyx/nyx_gui/frontend/gui_tools_partition_manager.c @@ -1209,7 +1209,7 @@ static u32 _get_available_l4t_partition() // Search for a suitable partition. u32 size_sct = 0; - if (!memcmp(&gpt->header.signature, "EFI PART", 8) || gpt->header.num_part_ents > 128) + if (!memcmp(&gpt->header.signature, "EFI PART", 8) && gpt->header.num_part_ents <= 128) { for (u32 i = 0; i < gpt->header.num_part_ents; i++) {