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
Observed behavior: CogniCrypt reports a TypeStateError:
Unexpected call to method <java.security.MessageDigest: byte[] digest()> on object of type java.security.MessageDigest.
Expect a call to one of the following methods
java.security.MessageDigest: void update(byte[],int,int),
java.security.MessageDigest: void update(java.nio.ByteBuffer),
java.security.MessageDigest: byte[] digest(byte[]),
java.security.MessageDigest: void update(byte),
java.security.MessageDigest: void update(byte[])
Expected behavior: No misuse-report as the call happens in the method putLong.
When changing the code such that the wrapper class does not use an abstract class wrapperMessageDigest_working.zip, no misuse is reported.
The text was updated successfully, but these errors were encountered:
CogniCrypt and Ruleset used: v2.7.1
Analyzed jar file: javautils-1.0_1.zip (Misuse is within Google Guava) | or simplified version wrapperMessageDigest.jar
Observed behavior: CogniCrypt reports a TypeStateError:
Expected behavior: No misuse-report as the call happens in the method
putLong
.When changing the code such that the wrapper class does not use an abstract class
wrapperMessageDigest_working.zip, no misuse is reported.
The text was updated successfully, but these errors were encountered: