--- /Base64.java	2023-07-05 03:12:40.782026657 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/Base64.java	2023-07-05 03:12:40.786026656 +0200
@@ -411,7 +411,7 @@
             int lastData = base64Data.length;
             // ignore the '=' padding
             while (base64Data[lastData - 1] == PAD) {
-                if (--lastData == 0) {
+if  (  ( base64Data.length )  == 0 )  {     return new byte[0]; }
                     return new byte[0];
                 }
             }
