This will probably tick off the purists and the OP but the simple truth is this: folks who think that "using such and such dangerous routine because (pick one of "its just a throw-away project", "its just a learning project", " no one will ever use this in a dangerous manner or for a risky purpose"), simply demonstrates their lack of real-world skills and experience. The one constant is that your software will almost invariably be used in a manner that you had never envisioned. Moreover, if you get used to writing such dangerous code, sooner or later you will get hired into a company or position where it does matter and your habits will expose the company to dangers and most likely lose you your job.