mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Don't consider copyOf() and clone() in ArrayUpdate
This commit is contained in:
@@ -153,7 +153,8 @@ public class StaticInitializationVector {
|
||||
byte[] randomBytes = new byte[16];
|
||||
SecureRandom.getInstanceStrong().nextBytes(randomBytes);
|
||||
|
||||
byte[] iv = Arrays.copyOf(randomBytes, 16);
|
||||
byte[] iv = new byte[16];
|
||||
iv = Arrays.copyOf(randomBytes, 16);
|
||||
|
||||
GCMParameterSpec ivSpec = new GCMParameterSpec(128, iv);
|
||||
SecretKeySpec keySpec = new SecretKeySpec(key, "AES");
|
||||
|
||||
Reference in New Issue
Block a user