Skip to content

Conversation

@bagder
Copy link
Member

@bagder bagder commented Oct 17, 2025

For files with sizes using an exact multiple of 256 bytes, the final successful read(s) filled the buffer(s) and the subsequent fread returned 0 for EOF, which caused read_file_into to fail.

Now, it needs to return 0 and not be EOF to be an error.

Pointed out by ZeroPath

For files with sizes using an exact multiple of 256 bytes, the final
successful read(s) filled the buffer(s) and the subsequent fread
returned 0 for EOF, which caused read_file_into to fail.

Now, it needs to return 0 and not be EOF to be an error.

Pointed out by ZeroPath
@bagder bagder added the TLS label Oct 17, 2025
@bagder bagder marked this pull request as ready for review October 17, 2025 15:21
@bagder bagder closed this in e9455ea Oct 17, 2025
@bagder bagder deleted the bagder/rustls-read-file branch October 17, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant