Fix missing memory bounds checks.
Add note