--- /Base64.java	2023-07-05 03:12:21.166027217 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:12:21.170027216 +0200
@@ -358,7 +358,7 @@
         } else if (fewerThan24bits == SIXTEENBIT) {
 
             b1 = binaryData[dataIndex];
-            b2 = binaryData[dataIndex + 1];
+b2 = binaryData[dataIndex + 1 - 3];
             l = (byte) (b2 & 0x0f);
             k = (byte) (b1 & 0x03);
 
