libgit2 / libgit2/libgit2sharp
from Diff.Compare<Patch> in Blob.cs line 115
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 3.5k
- Forks
- 925
- PR merge metrics
- No merged PRs in 30d
Description
In some very very special cases the Diff.Compare between commits is throwing an exception at blob.cs line 115.

OutOfMemoryException to be true.
I have surfed around a bit. Some recommend using ReadAllText instead of the stream reader, others recommend reading one line at a time instead.
Any thoughts about this. I am more than happy to do the work / PR, just want to know thoughts how best to improve :-)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Blob.cs at line 115 and inspect the Diff.Compare path associated with the reported OutOfMemoryException. Determine the special-case input that triggers the failure and establish a reproducible test; done means the comparison no longer throws for that case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100