Merge "[DO NOT MERGE] Check bounds in offsetToPtr" into mnc-dev