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

2021-04-30 Thread Michal Simek
st 28. 4. 2021 v 15:22 odesílatel Peng Fan (OSS) napsal: > > From: Peng Fan > > This is same issue as https://bugzilla.redhat.com/show_bug.cgi?id=1733817, > but that fix was wrongly partial reverted. > > When reading a directory, EFI_BUFFER_TOO_SMALL should be returned when > the supplied buffer

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

2021-04-28 Thread Heinrich Schuchardt
On 28.04.21 15:54, 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. > > When reading a directory, EFI_BUFFER_TOO_SMALL should be returned when > the supplied buffer is too small, so a

[PATCH V2] 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. When reading a directory, EFI_BUFFER_TOO_SMALL should be returned when the supplied buffer is too small, so a use-case is to call EFI_FILE_PROTOCOL.Read() with *bu