For some reason, digging in caves will cause the tiles in other caves to corrupt. For example, digging in the cave west of Hyrule Town will corrupt the tiles in the cave east of Hyrule Town, allowing you do get out of bounds. As the game will reload the caves after doing a white screen transition, there are not many places where this is possible.