Fascinating discussion of whether it's safe to read past the end of a buffer if you stay on the same page: https://stackoverflow.com/q/37800739 (A technique used in some high performance assembly code!)