Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver is non-compliant with EFI_FILE_PROTOCOL.Read() specs #4

Closed
pbatard opened this issue Mar 30, 2023 · 0 comments
Closed

Driver is non-compliant with EFI_FILE_PROTOCOL.Read() specs #4

pbatard opened this issue Mar 30, 2023 · 0 comments
Assignees

Comments

@pbatard
Copy link
Owner

pbatard commented Mar 30, 2023

Section 13.5 File Protocol of the UEFI Specification, Version 2.9 state that, for EFI_FILE_PROTOCOL.Read():

If This is a directory, the function reads the directory entry at the file’s current position and returns the entry in Buffer. If the Buffer is not large enough to hold the current directory entry, then EFI_BUFFER_TOO_SMALL is returned and (...) BufferSize is set to be the size of the buffer needed to read the entry.

However, as part of the investigation of pbatard/rufus#2210, we found that the current version of the driver may return 0 for BufferSize, if Buffer is not large enough, instead of the size of the buffer required to read the entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant