[Bug 212121] getaddrinfo doesn't compute length for sort rule 9 correctly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 24 19:31:46 UTC 2016


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

            Bug ID: 212121
           Summary: getaddrinfo doesn't compute length for sort rule 9
                    correctly
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: Herbie.Robinson at stratus.com

The routine "matchlen" in getaddrinfo contains the following loop:

while (r < addrlen * 8) {

It should be 

while ((r & 0x80) == 0) {

While this bug does, in theory, affect a lot of people, I seriously doubt many
of them will notice.

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


More information about the freebsd-bugs mailing list