This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ant-antlibs-cyclonedx.git


The following commit(s) were added to refs/heads/main by this push:
     new ee8074d  used the same byte of the checksum twice
ee8074d is described below

commit ee8074d90073b4023b7164cc3aeb98d5f21efd05
Author: Stefan Bodewig <[email protected]>
AuthorDate: Mon Jul 20 21:38:31 2026 +0200

    used the same byte of the checksum twice
---
 src/main/org/apache/ant/cyclonedx/ComponentBomTask.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java 
b/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java
index b9603e2..9466583 100644
--- a/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java
+++ b/src/main/org/apache/ant/cyclonedx/ComponentBomTask.java
@@ -376,7 +376,7 @@ public class ComponentBomTask extends Task {
         long clockseq = ((long)(componentIdHash[0] & 0x3F) << 56) | 
((long)(componentIdHash[1] & 0xFF) << 48);
         long nodeLow = ((long)(componentIdHash[2] & 0xFFl) << 40) | 
((long)(componentIdHash[3] & 0xFF) << 32);
         long nodeHigh = ((long)(componentIdHash[4] & 0xFFl) << 24) | 
((componentIdHash[5] & 0xFF) << 16)
-            | ((componentIdHash[6] & 0xFF) << 8) | (componentIdHash[5] & 0xFF);
+            | ((componentIdHash[6] & 0xFF) << 8) | (componentIdHash[7] & 0xFF);
         long lsb = variant | clockseq | nodeLow | nodeHigh;
 
         return new UUID(msb, lsb);

Reply via email to