There isn't a limit in the code, but there should be a practical upper limit imposed by the OS or 32-bit address space. Figure 4k by 4k or so (possibly higher or lower depending on what's already in memory). The way you'll know that you've exceeded the limit is that the software will crash, so save often when experimenting.