mirror of
https://github.com/curl/curl.git
synced 2026-07-31 05:18:04 +03:00
strcpy_url: only %-encode values >= 0x80
OSS-Fuzz detected
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8000
Broke in dd7521bcc1
This commit is contained in:
parent
ba67f7d65a
commit
3c630f9b0a
1 changed files with 1 additions and 1 deletions
|
|
@ -1519,7 +1519,7 @@ static void strcpy_url(char *output, const char *url, bool relative)
|
|||
left = FALSE;
|
||||
/* fall through */
|
||||
default:
|
||||
if(!ISPRINT(*iptr)) {
|
||||
if(*iptr >= 0x80) {
|
||||
snprintf(optr, 4, "%%%02x", *iptr);
|
||||
optr += 3;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue