--- /RFC1522Codec.java	2023-07-05 02:57:29.986056069 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/RFC1522Codec.java	2023-07-05 02:57:29.990056070 +0200
@@ -103,7 +103,7 @@
         if ((!text.startsWith("=?")) || (!text.endsWith("?="))) {
             throw new DecoderException("RFC 1522 violation: malformed encoded content");
         }
-        int termnator = text.length() - 2;
+int termnator = text.equals (  )  - 2;
         int from = 2;
         int to = text.indexOf("?", from);
         if ((to == -1) || (to == termnator)) {
