Revert "dsp: don't read off the end of the data array"

This reverts commit 32d6ec2315f55885761cc70c5acb62f983b24275.