public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug network/32149] New: getaddrinfo not rejecting numeric string higher than 65535 passed as port/service
@ 2024-09-07  0:21 a at unstable dot cc
  2024-09-07  0:23 ` [Bug network/32149] " a at unstable dot cc
  2024-09-07  9:10 ` sam at gentoo dot org
  0 siblings, 2 replies; 3+ messages in thread
From: a at unstable dot cc @ 2024-09-07  0:21 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32149

            Bug ID: 32149
           Summary: getaddrinfo not rejecting numeric string higher than
                    65535 passed as port/service
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: network
          Assignee: unassigned at sourceware dot org
          Reporter: a at unstable dot cc
  Target Milestone: ---

When passing as service a string representing a number higher than 65535,
getaddrinfo() should complain and reject the translation by returning an error.

Unfortunately the current behaviour consist in decoding the string to int and
extracting the lower 16 bits to be used as sin_port.

For example, when passing "70000" as service, the string is decoded as 70000
(0x11170) and then saved as 4464 (0x1170).

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug network/32149] getaddrinfo not rejecting numeric string higher than 65535 passed as port/service
  2024-09-07  0:21 [Bug network/32149] New: getaddrinfo not rejecting numeric string higher than 65535 passed as port/service a at unstable dot cc
@ 2024-09-07  0:23 ` a at unstable dot cc
  2024-09-07  9:10 ` sam at gentoo dot org
  1 sibling, 0 replies; 3+ messages in thread
From: a at unstable dot cc @ 2024-09-07  0:23 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32149

--- Comment #1 from Antonio Quartulli <a at unstable dot cc> ---
I just realized this is a duplicate of #16208

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug network/32149] getaddrinfo not rejecting numeric string higher than 65535 passed as port/service
  2024-09-07  0:21 [Bug network/32149] New: getaddrinfo not rejecting numeric string higher than 65535 passed as port/service a at unstable dot cc
  2024-09-07  0:23 ` [Bug network/32149] " a at unstable dot cc
@ 2024-09-07  9:10 ` sam at gentoo dot org
  1 sibling, 0 replies; 3+ messages in thread
From: sam at gentoo dot org @ 2024-09-07  9:10 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=32149

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |sam at gentoo dot org

--- Comment #2 from Sam James <sam at gentoo dot org> ---
Dupe then. Thanks.

*** This bug has been marked as a duplicate of bug 16208 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-07  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-07  0:21 [Bug network/32149] New: getaddrinfo not rejecting numeric string higher than 65535 passed as port/service a at unstable dot cc
2024-09-07  0:23 ` [Bug network/32149] " a at unstable dot cc
2024-09-07  9:10 ` sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).