Skip to content

Problem with stun #21

@ravenrani

Description

@ravenrani

arraycopy: last destination index 24 out of bounds for byte[20]
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last destination index 24 out of bounds for byte[20]
at java.base/java.lang.System.arraycopy(Native Method)
at de.javawi.jstun.attribute.ErrorCode.getBytes(ErrorCode.java:79)
at de.javawi.jstun.attribute.MessageAttribute.getLength(MessageAttribute.java:76)
at de.javawi.jstun.header.MessageHeader.parseAttributes(MessageHeader.java:157)
at de.javawi.jstun.test.DiscoveryTest.test2(DiscoveryTest.java:193)
at de.javawi.jstun.test.DiscoveryTest.test(DiscoveryTest.java:65)
at de.javawi.jstun.test.demo.DiscoveryTestDemo.run(DiscoveryTestDemo.java:78)
at java.base/java.lang.Thread.run(Thread.java:834)

Got the following error, probably some parsing inconsistency, cause this came back from coturn stun

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions