You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sha256:95 int newMessageLength = message.length + 1 + 8; can lead to a negative value that is used at Sha256:100 final byte[] paddedMessage = new byte[newMessageLength]; when message. length is greater than Integer.MAX_VALUE - 9 and resulting in a NegativeArraySizeException.
It may also lead to an OutOfMemoryError when building the array with an integer near Integer.MAX_VALUE since array max size is platform specific and can be a few bytes under Integer_MAX_VALUE.
The text was updated successfully, but these errors were encountered:
Hello,
Sha256:95 int newMessageLength = message.length + 1 + 8;
can lead to a negative value that is used atSha256:100 final byte[] paddedMessage = new byte[newMessageLength];
when message. length is greater thanInteger.MAX_VALUE - 9
and resulting in aNegativeArraySizeException
.It may also lead to an
OutOfMemoryError
when building the array with an integer nearInteger.MAX_VALUE
since array max size is platform specific and can be a few bytes underInteger_MAX_VALUE
.The text was updated successfully, but these errors were encountered: