It's not the job of the library to decide which pointers point to valid memory addresses and which do not.