Reproduction steps:
1. Create a new project
2. Create > Custom Font
3. Select newly created Asset and expand Character Rects foldout in the Inspector
4. Type a large number in Size field (e.g. “99999999”)
5. Observe the Editor
Actual result: “Fatal Error! The file ‘MemoryStream’ is corrupted!” Pop-up appears and Editor crashes
Expected result: Selected number of Character Rects appears or input number is limited
Reproducible with: 2022.3.67f1, 6000.0.60f1, 6000.2.9f1, 6000.3.0b7, 6000.4.0a3
Reproduced on: Ubuntu 22.04, Windows 11, macOS Sequoia 15.4 (M4)
Note: Full pop-up message: “Fatal Error! The file 'MemoryStream' is corrupted! Remove it and launch unity again! [Position out of bounds!] UnityEngine.GUlUtility:ProcessEvent (int, intptr,bool&)”