Thread: Making Vulnerable Program Not Vulnerable

  1. #31
    TheCMan
    Guest
    Again,

    I am looking for how to make the code not vulnerable, and WHY it does so.

  2. #32
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by TheCMan
    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.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #33
    Registered User
    Join Date
    Feb 2019
    Posts
    1,078
    Quote Originally Posted by TheCMan View Post
    Again,

    I am looking for how to make the code not vulnerable, and WHY it does so.
    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".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help making a program in C
    By 8494 in forum C Programming
    Replies: 1
    Last Post: 10-09-2015, 11:20 PM
  2. Help making a program
    By XtC10 in forum C++ Programming
    Replies: 9
    Last Post: 08-13-2010, 09:41 AM
  3. system() vulnerable to a buffer overflow?
    By Loic in forum C Programming
    Replies: 19
    Last Post: 08-12-2008, 05:33 PM
  4. Making a program that makes a program?
    By C-isCool in forum C Programming
    Replies: 3
    Last Post: 07-06-2007, 07:12 PM
  5. making a program leave a msg for background program when it closes
    By superflygizmo in forum Windows Programming
    Replies: 2
    Last Post: 02-06-2006, 07:44 PM

Tags for this Thread