diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-20 14:14:53 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2023-09-25 22:06:13 +0200 |
commit | a7edc7889c6f0a6441bdd5e030125dd795abfd2c (patch) | |
tree | 3a2d8ca94bd2fb81147e25ced6c2ec9bc261faf9 /org.eclipse.jgit.ssh.apache.agent/src/org | |
parent | 4cfe27dd0689be2f2cdf8c4e9d2cf4811052915b (diff) | |
download | jgit-a7edc7889c6f0a6441bdd5e030125dd795abfd2c.tar.gz jgit-a7edc7889c6f0a6441bdd5e030125dd795abfd2c.zip |
[errorprone] Prevent int expression may overflow
see https://errorprone.info/bugpattern/IntLongMath
Change-Id: Id201b7fc49b953d500e88b95e183127fe40ef6cc
Diffstat (limited to 'org.eclipse.jgit.ssh.apache.agent/src/org')
-rw-r--r-- | org.eclipse.jgit.ssh.apache.agent/src/org/eclipse/jgit/internal/transport/sshd/agent/connector/PageantLibrary.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit.ssh.apache.agent/src/org/eclipse/jgit/internal/transport/sshd/agent/connector/PageantLibrary.java b/org.eclipse.jgit.ssh.apache.agent/src/org/eclipse/jgit/internal/transport/sshd/agent/connector/PageantLibrary.java index 9a30d804e7..abfbca4b02 100644 --- a/org.eclipse.jgit.ssh.apache.agent/src/org/eclipse/jgit/internal/transport/sshd/agent/connector/PageantLibrary.java +++ b/org.eclipse.jgit.ssh.apache.agent/src/org/eclipse/jgit/internal/transport/sshd/agent/connector/PageantLibrary.java @@ -137,7 +137,7 @@ public final class PageantLibrary { } private Pointer init(CopyStruct c) { - c.cbData = name.length + 1; + c.cbData = name.length + 1L; c.lpData = new Memory(c.cbData); c.lpData.write(0, name, 0, name.length); c.lpData.setByte(name.length, (byte) 0); |