MULTIBOOT_SEARCH
header_search = malloc(MULTIBOOT_SEARCH);
if (read(fd, header_search, MULTIBOOT_SEARCH) != MULTIBOOT_SEARCH)
for (i = 0; i <= (MULTIBOOT_SEARCH - sizeof (multiboot2_header_t));
if (i + header->mb2_header_length > MULTIBOOT_SEARCH) {
header_search = malloc(MULTIBOOT_SEARCH);
search_size = read(fd, header_search, MULTIBOOT_SEARCH);
if (data_len + SECTOR_SIZE <= MULTIBOOT_SEARCH)
grub_memmove (linux_data_tmp_addr, buffer, MULTIBOOT_SEARCH);
grub_read (linux_data_tmp_addr + MULTIBOOT_SEARCH,
data_len + SECTOR_SIZE - MULTIBOOT_SEARCH);
unsigned char buffer[MULTIBOOT_SEARCH];
if (!(len = grub_read (buffer, MULTIBOOT_SEARCH)) || len < 32)
mem2 <= MULTIBOOT_SEARCH - sizeof (multiboot2_header_t);
if (ndx == 0 || mem2 + ndx > MULTIBOOT_SEARCH) {
if (sb.st_size < MULTIBOOT_SEARCH) {
image = mmap(NULL, MULTIBOOT_SEARCH, PROT_READ | PROT_WRITE,