Open
Description
NLayer/NLayer/Decoder/MpegStreamReader.cs
Line 403 in 670d408
This loop trying to do this backward move operation on the buffer is extremely extremely busted.
Not only does this never run because in this context moveCount should be negative. where i is always greater than 0 so the first loop iteration the check will fail. But destIdx = Data.Length - 1 - moveCount
increases the destination index past the end of the array so if this does run it would result in an exception.
I don't really understand the original intent with this code enough to submit a PR so issue it is.
Metadata
Assignees
Labels
No labels
Activity