mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
Fusee: Fix overflow condition in SD KIP merging
This commit is contained in:
parent
75b29e777b
commit
5742571153
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ size_t stratosphere_merge_inis(void *dst, ini1_header_t **inis, unsigned int num
|
|||
printk("Error: %s has wrong Title ID!\n", sd_path);
|
||||
generic_panic();
|
||||
}
|
||||
current_dst_kip += kip1_get_size_from_header(sd_kip);
|
||||
uint64_t sd_kip_size = kip1_get_size_from_header(sd_kip);
|
||||
remaining_size -= sd_kip_size;
|
||||
current_dst_kip += sd_kip_size;
|
||||
} else {
|
||||
uint64_t current_kip_size = kip1_get_size_from_header(current_kip);
|
||||
if (current_kip_size > remaining_size) {
|
||||
|
|
Loading…
Reference in a new issue