You have stumbled upon a classic.
In a shocking turn of events, your code has managed to find the end of the memory block.