Re: [PATCH] efi_loader: loosen buffer parameter check in efi_file_read_int

2021-04-28 Thread Heinrich Schuchardt
On 28.04.21 14:49, Heinrich Schuchardt wrote: > On 28.04.21 10:15, Peng Fan (OSS) wrote: >> From: Peng Fan >> >> This is same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1733817, >> but that fix was wrongly partial reverted. >> >> To Fedora shim loader, when buffer is NULL, a use-case is

Re: [PATCH] efi_loader: loosen buffer parameter check in efi_file_read_int

2021-04-28 Thread Heinrich Schuchardt
On 28.04.21 10:15, Peng Fan (OSS) wrote: > From: Peng Fan > > This is same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1733817, > but that fix was wrongly partial reverted. > > To Fedora shim loader, when buffer is NULL, a use-case is to call > efi_file_read with *buffer_size=0 and buffer

Re: [PATCH] efi_loader: loosen buffer parameter check in efi_file_read_int

2021-04-28 Thread Peter Robinson
On Wed, Apr 28, 2021 at 8:43 AM Peng Fan (OSS) wrote: > > From: Peng Fan > > This is same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1733817, > but that fix was wrongly partial reverted. > > To Fedora shim loader, when buffer is NULL, a use-case is to call > efi_file_read with *buffer_s

[PATCH] efi_loader: loosen buffer parameter check in efi_file_read_int

2021-04-28 Thread Peng Fan (OSS)
From: Peng Fan This is same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1733817, but that fix was wrongly partial reverted. To Fedora shim loader, when buffer is NULL, a use-case is to call efi_file_read with *buffer_size=0 and buffer=NULL to obtain the needed size before doing the actu