xemu-xbe.c: Increase header size threshold

This commit is contained in:
Matt Borgerson 2021-06-22 14:54:41 -07:00 committed by mborgerson
parent a7f3f8f212
commit 0c64395114
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ struct xbe *xemu_get_xbe_info(void)
// Determine full length of headers
xbe.headers_len = ldl_le_phys(&address_space_memory,
hdr_addr_phys + offsetof(struct xbe_header, m_sizeof_headers));
if (xbe.headers_len > 4*TARGET_PAGE_SIZE) {
if (xbe.headers_len > 8*TARGET_PAGE_SIZE) {
// Headers are unusually large
return NULL;
}