Re: [PATCH] grub-file: fix segmentation fault

2016-04-11 Thread Michael Chang
On Mon, Apr 11, 2016 at 12:28:35PM +0300, Andrei Borzenkov wrote: > On Mon, Apr 11, 2016 at 7:00 AM, Michael Chang wrote: > > On Sat, Apr 09, 2016 at 07:01:50AM +0300, Andrei Borzenkov wrote: > >> 08.04.2016 09:43, Michael Chang пишет: > >> > In grub_file_open the file handle returned by file filt

Re: [PATCH] grub-file: fix segmentation fault

2016-04-11 Thread Andrei Borzenkov
On Mon, Apr 11, 2016 at 7:00 AM, Michael Chang wrote: > On Sat, Apr 09, 2016 at 07:01:50AM +0300, Andrei Borzenkov wrote: >> 08.04.2016 09:43, Michael Chang пишет: >> > In grub_file_open the file handle returned by file filters has no >> > file->name >> > set which leads to segmentation fault lat

Re: [PATCH] grub-file: fix segmentation fault

2016-04-10 Thread Michael Chang
On Sat, Apr 09, 2016 at 07:01:50AM +0300, Andrei Borzenkov wrote: > 08.04.2016 09:43, Michael Chang пишет: > > In grub_file_open the file handle returned by file filters has no file->name > > set which leads to segmentation fault later referenced by grub_elf_file. We > > move the file->name value a

Re: [PATCH] grub-file: fix segmentation fault

2016-04-08 Thread Andrei Borzenkov
08.04.2016 09:43, Michael Chang пишет: > In grub_file_open the file handle returned by file filters has no file->name > set which leads to segmentation fault later referenced by grub_elf_file. We > move the file->name value assignment after file filters to make sure it will > be > set and returned

[PATCH] grub-file: fix segmentation fault

2016-04-07 Thread Michael Chang
In grub_file_open the file handle returned by file filters has no file->name set which leads to segmentation fault later referenced by grub_elf_file. We move the file->name value assignment after file filters to make sure it will be set and returned. The stack backtrace for reference. gdb --args