[Bug 217723] [patch] libfetch parses IPv6 addresses incorrectly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Mar 12 13:09:16 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=217723

            Bug ID: 217723
           Summary: [patch] libfetch parses IPv6 addresses incorrectly
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: des at FreeBSD.org
          Keywords: patch

Created attachment 180744
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=180744&action=edit
Rewrite host parser

fetch_resolve() in lib/libfetch/common.c uses strchr() to split the host
argument into host name and service name or port number.  Obviously, this fails
for IPv6 addresses.  Rewrite the code to handle IP literals (bracketed
addresses) correctly and remove similar and now redundant code from fetch.c.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list