Commit 74b317e
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 74b317e
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
1005 | | - | |
| 1005 | + | |
| 1006 | + | |
1006 | 1007 | | |
1007 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
1008 | 1011 | | |
1009 | 1012 | | |
1010 | 1013 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
| 701 | + | |
| 702 | + | |
702 | 703 | | |
703 | 704 | | |
704 | | - | |
| 705 | + | |
705 | 706 | | |
706 | 707 | | |
707 | 708 | | |
| |||
0 commit comments