From 7c37b7497b119df60bd488d0f921a82f99566961 Mon Sep 17 00:00:00 2001 From: hexkyz Date: Mon, 17 Jun 2019 19:47:47 +0100 Subject: [PATCH] emummc: sanitize raw image file find loop (thanks @AnalogMan) --- fusee/fusee-secondary/src/nxboot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fusee/fusee-secondary/src/nxboot.c b/fusee/fusee-secondary/src/nxboot.c index e46170c4b..cc7f1cacd 100644 --- a/fusee/fusee-secondary/src/nxboot.c +++ b/fusee/fusee-secondary/src/nxboot.c @@ -285,6 +285,9 @@ static bool nxboot_configure_emummc(exo_emummc_config_t *exo_emummc_config) { part_limit = get_file_size(emummc_rawnand_path); } num_parts++; + } else { + /* No more image files. */ + break; } }