Merge "Add overflow checks in Memory objects." am: 856bccbdc3 am: 69b4dfe13e
am: 7c3e179f0f

Change-Id: I0e00217bfb3f7aea22b9a4b75d0166d82457f8f6