Closed ararslan closed 4 years ago
@jrevels, any ideas for an appropriate test? I was playing around the other day to try to trigger this case but couldn't determine how, likely because I don't really understand why this occurs, only that this PR fixes it when it does. 😛
The computed stopping point for writing signal chunks may exceed the length of the actual data, resulting in a bounds error. To fix that, we can just take the minimum of the computed stop and the actual length.
Should have a test. Came across this case in the wild.