diff options
Diffstat (limited to 'ports-mgmt/pkg/files')
-rw-r--r-- | ports-mgmt/pkg/files/patch-libfetch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/ports-mgmt/pkg/files/patch-libfetch b/ports-mgmt/pkg/files/patch-libfetch deleted file mode 100644 index 162a61b1a469..000000000000 --- a/ports-mgmt/pkg/files/patch-libfetch +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/external/libfetch/fetch.c b/external/libfetch/fetch.c -index 47c03a79..df5d5547 100644 ---- external/libfetch/fetch.c -+++ external/libfetch/fetch.c -@@ -332,6 +332,8 @@ fetch_pctdecode(char *dst, const char *src, size_t dlen) - } - if (dlen-- > 0) - *dst++ = c; -+ else -+ return (NULL); - } - return (s); - } -@@ -381,11 +383,15 @@ fetchParseURL(const char *URL) - if (p && *p == '@') { - /* username */ - q = fetch_pctdecode(u->user, URL, URL_USERLEN); -+ if (q == NULL) -+ goto ouch; - - /* password */ -- if (*q == ':') -+ if (*q == ':') { - q = fetch_pctdecode(u->pwd, q + 1, URL_PWDLEN); -- -+ if (q == NULL) -+ goto ouch; -+ } - p++; - } else { - p = URL; |