Skip to content

Init 1 Step 3 Error #42

@ElimarCosta

Description

@ElimarCosta

Im getting an java.lang.ArrayIndexOutOfBoundsException at LocalClientHandlerConnecting.java:109:
Line 108 byte[] solution = x.modPow(BigInteger.valueOf(2L).pow(serverReplyStep3.getLevel()), n).toByteArray(); //it will contain the value 0.
Line 109 System.arraycopy(
solution, Math.abs(solution.length - 64),
y, solution.length < 64 ? 64 - solution.length : 0,
solution.length < 64 ? solution.length : 64
);
Im testing against a server which is returning x = 1, n = 1, level = 1000. The solution will have only one byte, the above code is trying to copy from position 63 in a 1 byte var.

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