Details
Description
The PADDING array in class StringUtils is one entry too short.
As declared, it overflows on '\uffff'.
To test, run:
StringUtils.leftPad("abcd", 10, '\ufffe') // no exception
StringUtils.leftPad("abcd", 10, '\uffff') // ArrayIndexOutOfBoundsException
Current code:
private static final String[] PADDING = new String[Character.MAX_VALUE];
Suggested fix:
private static final String[] PADDING = new String[Character.MAX_VALUE + 1];