Permalink
Browse files

loader/i386: fix out of bound memory copy on non-UEFI linux

  • Loading branch information...
lucab authored and iaguis committed Apr 9, 2018
1 parent 84a4fd2 commit 8281b03be34552e744fd08aae78b38704e2562b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 grub-core/loader/i386/linux.c
@@ -826,7 +826,7 @@ grub_cmd_linux (grub_command_t cmd __attribute__ ((unused)),
len = sizeof (linux_params) - sizeof (lh);
grub_memcpy (&linux_params + sizeof (lh), kernel + kernel_offset, len);
grub_memcpy ((char *) &linux_params + sizeof (lh), kernel + kernel_offset, len);
kernel_offset += len;
linux_params.type_of_loader = GRUB_LINUX_BOOT_LOADER_TYPE;

0 comments on commit 8281b03

Please sign in to comment.