-
Bug
-
Resolution: Fixed
-
P3
-
19
-
b31
-
aarch64
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8290187 | 20 | Jorn Vernee | P3 | Resolved | Fixed | b06 |
JDK-8291419 | 19.0.2 | Jorn Vernee | P3 | Resolved | Fixed | b01 |
JDK-8291294 | 19.0.1 | Jorn Vernee | P3 | Resolved | Fixed | b04 |
VaList vaList = VaList.make(b -> b.addVarg(ValueLayout.JAVA_LONG, 1), MemorySession.openShared());
vaList.skip(ValueLayout.JAVA_LONG);
vaList.skip(ValueLayout.JAVA_LONG);
vaList.skip(ValueLayout.JAVA_LONG);
vaList.skip(ValueLayout.JAVA_LONG);
vaList.skip(ValueLayout.JAVA_LONG);
leads to
Exception in thread "main" java.lang.IndexOutOfBoundsException: Out of bound access on segment MemorySegment{ id=0x3a2eb306 limit: 0 }; new offset = 8; new length = 0
at java.base/jdk.internal.foreign.AbstractMemorySegmentImpl.outOfBoundException(AbstractMemorySegmentImpl.java:416)
at java.base/jdk.internal.foreign.AbstractMemorySegmentImpl.checkBounds(AbstractMemorySegmentImpl.java:400)
at java.base/jdk.internal.foreign.AbstractMemorySegmentImpl.asSlice(AbstractMemorySegmentImpl.java:115)
at java.base/jdk.internal.foreign.AbstractMemorySegmentImpl.asSlice(AbstractMemorySegmentImpl.java:67)
at java.base/jdk.internal.foreign.abi.aarch64.macos.MacOsAArch64VaList.skip(MacOsAArch64VaList.java:134)
Specification could deserve clarification - for example mention of IndexOutOfBoundsException
https://download.java.net/java/early_access/jdk19/docs/api/java.base/java/lang/foreign/VaList.html#skip(java.lang.foreign.MemoryLayout...)
- backported by
-
JDK-8290187 j.l.foreign.VaList::skip call could throw java.lang.IndexOutOfBoundsException: Out of bound access on segment
-
- Resolved
-
-
JDK-8291294 j.l.foreign.VaList::skip call could throw java.lang.IndexOutOfBoundsException: Out of bound access on segment
-
- Resolved
-
-
JDK-8291419 j.l.foreign.VaList::skip call could throw java.lang.IndexOutOfBoundsException: Out of bound access on segment
-
- Resolved
-
- clones
-
JDK-8289148 j.l.foreign.VaList::nextVarg call could throw IndexOutOfBoundsException or even crash the VM
-
- Resolved
-
- duplicates
-
JDK-8289148 j.l.foreign.VaList::nextVarg call could throw IndexOutOfBoundsException or even crash the VM
-
- Resolved
-