Correct error code for reads into a bad pointer.

Per tests this is generally -1.