I did a more specific search based on what Richard suggested and got 2 results that are verbatim with his suggestion.
Search 1 is in a file titled
InflaterInputStream.cs
public int ReadClearTextBuffer(byte[] outBuffer, int offset, int length)
{
if ( length < 0 ) {
throw new ArgumentOutOfRangeException("length");
}
int currentOffset = offset;
int currentLength = length;
while ( currentLength > 0 ) {
if ( available <= 0 ) {
Fill();
if (available <= 0) {
return 0;
}
}
int toCopy = Math.Min(currentLength, available);
Array.Copy(clearText, clearTextLength - (int)available, outBuffer, currentOffset, toCopy);
currentOffset += toCopy;
currentLength -= toCopy;
available -= toCopy;
}
return length;
}
Search 2 is in a file called
StreamManipulator.cs
(for the sake of not posting a ton of code I'll only post the exception);
public int CopyBytes(byte[] output, int offset, int length)
{
if (length < 0) {
throw new ArgumentOutOfRangeException("length");
}
More descriptive notes for search 2;
With the problem found, how can I fix it without breaking the lib? I really don't know anything about coding with C#. Is it as simple as removing the 'if' statement or changing the value?
Edit: I simply deleted the 'if' statements that throws the Exception and it's working perfectly.