Check if partial match doesn't exceed maximum offset boundary.

Change-Id: I477c849e562bf1390dba8b772e1cf25371d4bcd4