rv34: Check for invalid slice offsets