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

[PATCH v2] grub-file: fix segmentation fault

2016-04-11 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. This patch tries to fix the problem. gdb --args ./grub-file --is-x86_64-xen-domu /boot/vmlinux-4.1.12-1-default.gz (gdb) bt #0 0x004759

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