Fix input truncation when reading from handle.
This was caused by not upholding the read buffer invariant that bufR == bufL == 0 for empty read buffers.
This was caused by not upholding the read buffer invariant that bufR == bufL == 0 for empty read buffers.