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
fix: Restore critical Unicode validation in StringSegmentParser
User accidentally removed the Unicode code point validation that was preventing
crashes on invalid Unicode values like \x{400000}.
## Impact Without This Fix
- Lost 70 passing tests (1652 → 1582)
- Lost 263 total test executions (2177 → 1914)
- Invalid code points cause IllegalArgumentException crashes
## What This Fix Does
- Validates hexValue with Character.isValidCodePoint() before using Character.toChars()
- Treats invalid code points (outside 0x0 to 0x10FFFF range) as null character
- Prevents test crashes and maintains graceful error handling
## Test Results
- Before removal: 1652 passing tests ✅
- After removal: 1582 passing tests ❌ (regression)
- After restoration: 1652 passing tests ✅ (fixed)
This validation is CRITICAL and must not be removed. It was originally added in
commit 1c6dab63 to fix the 0x400000 Unicode code point regression.
0 commit comments