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

fix 2GB file transfer limit #2

Open
brettsheffield opened this issue Apr 16, 2020 · 0 comments
Open

fix 2GB file transfer limit #2

brettsheffield opened this issue Apr 16, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@brettsheffield
Copy link
Member

Due to an unsafe cast in wolfSSL_writev() the total amount of data that can be sent at once is INT_MAX bytes despite the API allowing an array of up to (INT_MAX * size_t) chunks to be passed in.

The result is files greater than INT_MAX bytes (~2GB) cannot be sent (including headers).

Work around this limitation, and consider sending a patch to wolfssl to fix this brokeness.

@brettsheffield brettsheffield added the bug Something isn't working label Apr 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant