You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: