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

This reverts commit ed4a5df54b40678f382482e794ea28d874fd62f9.