Accepting request 480763 from home:michael-chang:bsc:1029187

- 0004-tpm-Rework-linux-command.patch : Fix out of bound memory copy
  (bsc#1029187)

OBS-URL: https://build.opensuse.org/request/show/480763
OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=265
This commit is contained in:
Andrei Borzenkov 2017-03-17 06:58:56 +00:00 committed by Git OBS Bridge
parent 60c7965fc1
commit 2b76639968
2 changed files with 10 additions and 4 deletions

View File

@ -10,10 +10,10 @@ before pulling out the individual blocks later on.
grub-core/loader/i386/linux.c | 34 +++++++++++++++++++++-------------
1 file changed, 21 insertions(+), 13 deletions(-)
Index: grub-2.02~beta3/grub-core/loader/i386/linux.c
Index: grub-2.02~rc1/grub-core/loader/i386/linux.c
===================================================================
--- grub-2.02~beta3.orig/grub-core/loader/i386/linux.c
+++ grub-2.02~beta3/grub-core/loader/i386/linux.c
--- grub-2.02~rc1.orig/grub-core/loader/i386/linux.c
+++ grub-2.02~rc1/grub-core/loader/i386/linux.c
@@ -680,12 +680,13 @@ grub_cmd_linux (grub_command_t cmd __att
grub_file_t file = 0;
struct linux_kernel_header lh;
@ -68,7 +68,7 @@ Index: grub-2.02~beta3/grub-core/loader/i386/linux.c
- goto fail;
- }
+
+ 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;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 17 06:22:42 UTC 2017 - mchang@suse.com
- 0004-tpm-Rework-linux-command.patch : Fix out of bound memory copy
(bsc#1029187)
-------------------------------------------------------------------
Thu Mar 16 16:32:54 UTC 2017 - arvidjaar@gmail.com