RFR: JDK-8319382: com/sun/jdi/JdwpAllowTest.java shows failures on AIX if prefixLen of mask is larger than 32 in IPv6 case [v4]

Alex Menkov amenkov at openjdk.org
Tue Jan 16 19:04:28 UTC 2024


On Mon, 15 Jan 2024 09:13:24 GMT, Joachim Kern <jkern at openjdk.org> wrote:

>> In parseAllowedMask in socketTransport.c, prefixLen of mask is compared with a maxValue (32 for IPv4, 128 otherwise).  This fails if it is larger than 32, because getaddrinfo seems to detect IPv4 family, if IPv6 address has set only some of the last 32 Bits. So we take the wrong maxValue.
>
> Joachim Kern has updated the pull request incrementally with one additional commit since the last revision:
> 
>   cosmetic changes

Marked as reviewed by amenkov (Reviewer).

-------------

PR Review: https://git.openjdk.org/jdk/pull/17374#pullrequestreview-1824662970


More information about the serviceability-dev mailing list