mirror of
https://github.com/curl/curl.git
synced 2026-08-03 03:30:27 +03:00
mime: fix the binary encoder to handle large data properly
New test 666 checks this is effective. As upload buffer size is significant in this kind of tests, shorten it in similar test 652. Fixes #4860 Closes #4833 Reported-by: RuurdBeerstra on github
This commit is contained in:
parent
1e4cb333ef
commit
e5b366c0b5
6 changed files with 423 additions and 4 deletions
|
|
@ -366,7 +366,7 @@ static size_t encoder_nop_read(char *buffer, size_t size, bool ateof,
|
|||
size = insize;
|
||||
|
||||
if(size)
|
||||
memcpy(buffer, st->buf, size);
|
||||
memcpy(buffer, st->buf + st->bufbeg, size);
|
||||
|
||||
st->bufbeg += size;
|
||||
return size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue