diff options
author | Stefan Eissing <stefan@eissing.org> | 2024-08-13 13:34:54 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2024-08-15 10:16:55 +0200 |
commit | c90a3f16b8717dda2f287db41b1bd32ab9bc8f35 (patch) | |
tree | 0903de0bfa5c279f7b4b28217270796c43c0c99f /docs/examples/debug.c | |
parent | 9f23c8f201f55f1a148b41b16a5e71f3385faa5e (diff) |
mime: avoid inifite loop in client reader
Curl_mime_read() may go into an infinite loop when called with buffer
lengths <= 4. Some encoders, like base64, are not prepared for that.
In the client reader for mime data, skip such small reads. The upload
buffers will get flushed eventually and larger reads will happen again.
Improves robustness of test652 which triggered the loop on blocked
sends.
Closes #14532
Diffstat (limited to 'docs/examples/debug.c')
0 files changed, 0 insertions, 0 deletions