gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 116/178: strcpy_url: only %-encode values >= 0x80


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 116/178: strcpy_url: only %-encode values >= 0x80
Date: Wed, 23 May 2018 12:25:51 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 3c630f9b0af097663a64e5c875c580aa9808a92b
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Apr 25 07:56:01 2018 +0200

    strcpy_url: only %-encode values >= 0x80
    
    OSS-Fuzz detected
    
    https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8000
    
    Broke in dd7521bcc1b7
---
 lib/transfer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/transfer.c b/lib/transfer.c
index c586c727d..9712a7f7e 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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;
       }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]