This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 3668595ef60728f04f6ad0d73ac1c835f2e21ed7 Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu May 22 14:15:19 2025 +0100 Protect decode table formatting --- java/org/apache/tomcat/util/codec/binary/Base64.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/java/org/apache/tomcat/util/codec/binary/Base64.java b/java/org/apache/tomcat/util/codec/binary/Base64.java index 5f6fdbd7a5..f992d67e3d 100644 --- a/java/org/apache/tomcat/util/codec/binary/Base64.java +++ b/java/org/apache/tomcat/util/codec/binary/Base64.java @@ -103,6 +103,7 @@ public class Base64 extends BaseNCodec { * https://svn.apache.org/repos/asf/webservices/commons/trunk/modules/util/ * </p> */ + // @formatter:off private static final byte[] STANDARD_DECODE_TABLE = { // 0 1 2 3 4 5 6 7 8 9 A B C D E F -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, // 00-0f @@ -125,7 +126,8 @@ public class Base64 extends BaseNCodec { 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, 63, // 50-5f P-Z _ -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, // 60-6f a-o 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 // 70-7a p-z - }; + }; + // @formatter:on /* * Base64 uses 6-bit fields. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org