-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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
Labels
No labels