RFR: JDK-8319382: com/sun/jdi/JdwpAllowTest.java shows failures on AIX if prefixLen of mask is larger than 32 in IPv6 case
Joachim Kern
jkern at openjdk.org
Thu Jan 11 15:52:46 UTC 2024
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.
-------------
Commit messages:
- JDK-8319382
Changes: https://git.openjdk.org/jdk/pull/17374/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17374&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8319382
Stats: 30 lines in 1 file changed: 2 ins; 19 del; 9 mod
Patch: https://git.openjdk.org/jdk/pull/17374.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17374/head:pull/17374
PR: https://git.openjdk.org/jdk/pull/17374
More information about the serviceability-dev
mailing list