Don't try to write to unallocated memory.