directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: Fix code analysis issue: The user-supplied array 'out' is stored directly.
Date Tue, 05 Jan 2016 08:00:17 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/trunk 15253cd76 -> 14cb4d25e


Fix code analysis issue: The user-supplied array 'out' is stored directly.


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/14cb4d25
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/14cb4d25
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/14cb4d25

Branch: refs/heads/trunk
Commit: 14cb4d25e9856fcf6dcb405b97687ef5dae45d49
Parents: 15253cd
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Tue Jan 5 16:07:04 2016 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Tue Jan 5 16:07:04 2016 +0800

----------------------------------------------------------------------
 kerby-util/src/main/java/org/apache/kerby/util/Base64.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/14cb4d25/kerby-util/src/main/java/org/apache/kerby/util/Base64.java
----------------------------------------------------------------------
diff --git a/kerby-util/src/main/java/org/apache/kerby/util/Base64.java b/kerby-util/src/main/java/org/apache/kerby/util/Base64.java
index fa112ba..43ea190 100644
--- a/kerby-util/src/main/java/org/apache/kerby/util/Base64.java
+++ b/kerby-util/src/main/java/org/apache/kerby/util/Base64.java
@@ -420,7 +420,7 @@ public class Base64 {
         // We can re-use consumer's original output array under
         // special circumstances, saving on some System.arraycopy().
         if (out != null && out.length == outAvail) {
-            buffer = out;
+            buffer = out.clone();
             pos = outPos;
             readPos = outPos;
         }


Mime
View raw message