-
Notifications
You must be signed in to change notification settings - Fork 990
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
fwrite gzip on OpenBSD error #5048
Comments
Error code -9 is internal to fwrite and is returned when zlib doc says "In order to complete in one call, avail_out must be at least the value returned by deflateBound (see below). But OpenBSD has an old zlib library, part of the system (not a package) : version 1.2.3 from 2005 (current is 1.2.11 since 2017). |
Actually, buffer size for writing header only uses headerLen. With this commit, buffer size for writing header uses headerLen only when the size is bigger than using the buffer size parameter (buffMB). Resolves #5048
Many thanks! As you wrote that the PR is an attempt, leaving this issue open but marked 1.14.1 to serve as a reminder. If it is confirmed fixed before release then we can update the news item and close this issue at that point? |
Confirmed fixed. |
On OpenBSD 6.9, released May 1, 2021, writing gzipped csv fails :
Reproducible example:
The text was updated successfully, but these errors were encountered: