Sanity checks for the stream parser