Again,
I am looking for how to make the code not vulnerable, and WHY it does so.
Again,
I am looking for how to make the code not vulnerable, and WHY it does so.
Refer to my posts #6, #8, and #18, then match up my statements to my code in post #30. The "why" is all there.Originally Posted by TheCMan
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Nope... you didn't asked to make it safer. Your words (post #1): "...I need to understand how to make it not vulnerable to these attacks..."
To undestand something you need to know WHY!
And laserlight already answered your question and even post a code making it "not vulnerable".