Why do I get a mysterious crash or "segmentation fault" when I copy data to the address of an uninitialized pointer?
Crash or "segmentation fault" when data is copied/scanned to an uninitialized pointer