ModernUO
ModernUO copied to clipboard
Possible bug in SpanReader.cs
https://github.com/modernuo/ModernUO/blob/main/Projects/Server/Buffers/SpanReader.cs#L299
On this line...
Shouldn't that be if( bytes.Length < Position )?
Should be if (bytes.Length > Remaining)
It is normal in C# for Read(dest) to read fewer bytes.
Just in case, I fixed the exception handling and added massive number of tests. Thanks for looking into this.