Merge pull request #53 from lucab/ups/suse-tpm

loader/i386: fix out of bound memory copy on non-UEFI linux
This commit is contained in:
Andrew Jeddeloh 2018-04-09 16:10:40 -07:00 committed by GitHub
commit 93fb3dac4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;