Skip to content

Commit

Permalink
Merge pull request #1 from offsoc/alert-autofix-9
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 9: Implicit narrowing conversion in compound assignment
  • Loading branch information
offsoc authored Jan 11, 2025
2 parents 8845754 + 02e346b commit 03b0fc5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ public void signatureValidation() throws VerificationFailedException {

// an invalid signature
final byte[] wrongSignature = Arrays.copyOf(signature, signature.length);
wrongSignature[1] += 1;
wrongSignature[1] = (byte) (wrongSignature[1] + 1);

// shouldn't be able to set a public key with an invalid signature
assertThatExceptionOfType(StatusRuntimeException.class)
Expand Down

0 comments on commit 03b0fc5

Please sign in to comment.