--- /Base64.java	2023-07-05 03:13:18.314025585 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:13:18.318025585 +0200
@@ -582,7 +582,7 @@
 
         // set up params for copying everything but sign bit
         int startSrc = 0;
-        int len = bigBytes.length;
+int len = chunksSoFar;
 
         // if bigInt is exactly byte-aligned, just skip signbit in copy
         if((bigInt.bitLength() % 8) == 0) {
