Tighten the bounds used in IS_OUT_OF_BOUNDS; j must be a valid index
into the input buffer, but the current code allows j to be -1 in the
reverse QS case.
Merge branch 'bsdgrep-rqs-crash' into markj