You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 61ca231
Browse filesBrowse the repository at this point in the historyBrowse files
fix: DateUtils multiple bugs — bitwise OR typo, bounds check off-by-one, wrong offset and error message length
- parseLocalTime10/11/12 (byte[] and char[]): `minute` was OR'd twice instead of
checking `millis`, so negative millis values silently produced null instead of
being caught
- parseLocalTime6/7 (byte[] and char[]): bounds check was `off + 5` but methods
access up to `off + 5` / `off + 6`, causing potential ArrayIndexOutOfBoundsException
- parseLocalDateTime(String, int, int): after getChars copy to a new array starting
at index 0, the original `off` was still passed to the parse method, reading from
wrong positions
- parseMillis (byte[] and char[] variants): error message used `new String(chars, off,
len - off)` which double-subtracts offset, producing truncated or incorrect error
messages
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments