Skip to content

Increase the BUFSIZ-long buffers [v9.18]

Ondřej Surý requested to merge 3453-cope-with-too-small-BUFSIZ-v9_18 into v9_18

The BUFSIZ value varies between platforms, it could be 8K on Linux and 512 bytes on mingw. Make sure the buffers are always big enough for the output data to prevent truncation of the output by appropriately enlarging or sizing the buffers.

(cherry picked from commit b19d9322)

Closes #3453 (closed)

Edited by Ondřej Surý

Merge request reports