mirror of
https://github.com/curl/curl.git
synced 2026-07-26 12:37:16 +03:00
http_aws_sigv4: skip the op if the query pair is zero bytes
Follow-up to fc76a24c53
Spotted by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62175
Closes #11823
This commit is contained in:
parent
4600bd3993
commit
16bdc09ee0
1 changed files with 2 additions and 0 deletions
|
|
@ -422,6 +422,8 @@ static CURLcode canon_query(struct Curl_easy *data,
|
|||
for(i = 0; !result && (i < entry); i++, ap++) {
|
||||
size_t len;
|
||||
const char *q = ap->p;
|
||||
if(!ap->len)
|
||||
continue;
|
||||
for(len = ap->len; len && !result; q++, len--) {
|
||||
if(ISALNUM(*q))
|
||||
result = Curl_dyn_addn(dq, q, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue