Merge "sysupgrade: Consider minimum metadata size as 0x1000"

This commit is contained in:
Linux Build Service Account 2023-04-14 02:41:13 -07:00 committed by Gerrit - the friendly Code Review server
commit a0a655ebd8

View file

@ -1235,7 +1235,7 @@ int parse_elf_image_phdr(struct image_section *section)
phdr->p_paddr, phdr->p_offset, phdr->p_filesz, phdr->p_type);
int size = sb.st_size - (phdr->p_offset + phdr->p_filesz );
if (size < 0x4000) {
if (size < 0x1000) {
printf("rootfs metada is not available\n");
return 1;
}