[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #43601] Built-in gpg verification fails over tftp

From: Rob
Subject: [bug #43601] Built-in gpg verification fails over tftp
Date: Tue, 18 Nov 2014 15:36:19 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0

Follow-up Comment #2, bug #43601 (project grub):

I believe I found the source of the issue.  When the device is a net device,
grub_pubkey_open in verify.c closes the net device at the end with the
grub_file_close(io) call even though that is not the intent (io->device is
nulled before the free call, but the call back into grub_net_fs_close closes
the device anyway).  When the function doing the original file operation (cat
in my case) does it's close, the device is double freed and causes the memory
corruption error.  I've attached a patch that skips the grub_file_close(io)
step in grub_pubkey_open if the device is a net device.  This has fixed my
issue without any adverse consequences.  

(file #32459)

Additional Item Attachment:

File name: verify.c.patch                 Size:0 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]