Commit ea0879b
fix: Cap span expansion at u16::MAX (65535) line range
Prevents excessive iteration from malformed mapping files where the
original line range could be extremely large (up to u32::MAX). The JVM
bytecode maximum line number is 65535, so any span beyond that is
invalid and falls through to single-line handling.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b4acde2 commit ea0879b
2 files changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| |||
1005 | 1014 | | |
1006 | 1015 | | |
1007 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
1008 | 1019 | | |
1009 | 1020 | | |
1010 | 1021 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
7 | 16 | | |
8 | 17 | | |
9 | 18 | | |
| |||
701 | 710 | | |
702 | 711 | | |
703 | 712 | | |
704 | | - | |
| 713 | + | |
705 | 714 | | |
706 | 715 | | |
707 | 716 | | |
| |||
0 commit comments