-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I was testing merging on a very large file (260k lines) and hit a panic here: https://github.com/nasdf/diff3/blob/main/diff3.go#L131
panic: runtime error: index out of range [157894] with length 155846
After a bit of inspection, I think the issue is that you're calling int(r) instead of diffmatchpatch.runeToInt(r), as DiffCharsToLines does it. From looking at code for runeToInt/intToRune it seems like this could happen with much smaller file size than 100k+ lines.
Metadata
Metadata
Assignees
Labels
No labels