I have seen several posts on the dangers of WRITING outside of array boundaries. I was wondering though, is there any problem with READING outside of them? My reason for this is as follows:
I have commands and data in a randomly generated array, but sometimes the commands require uncertain amounts of data. Do I need to put checks in each command's subroutine so that data is not read from outside the string, or can I temporarily read from outside the array, and realloc later?