mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
headers: handle unfold of space-cleansed headers
Detected by OSS-fuzz Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47767 Updated test 1274 Closes #8947
This commit is contained in:
parent
45de940ceb
commit
f810047f9d
2 changed files with 5 additions and 3 deletions
|
|
@ -227,8 +227,8 @@ static CURLcode unfold_value(struct Curl_easy *data, const char *value,
|
|||
DEBUGASSERT(data->state.prevhead);
|
||||
hs = data->state.prevhead;
|
||||
olen = strlen(hs->value);
|
||||
oalloc = olen + strlen(hs->name) + 1;
|
||||
offset = hs->value - hs->buffer;
|
||||
oalloc = olen + offset + 1;
|
||||
|
||||
/* skip all trailing space letters */
|
||||
while(vlen && ISSPACE(value[vlen - 1]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue