Thread: Buffer overflow errors

  1. #1
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790

    Buffer overflow errors

    I have heard plenty about buffer overflow errors: that they can allow malicious code to be run on a machine; however, I cannot find why or how it does this. What exactly happens during a buffer overflow, and how does it allow someone to run their code on a machine?

    This is C related as I hear C has alot of problems with this, and I was wondering how to make sure you do not leave room for a buffer overflow error in your code.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >What exactly happens during a buffer overflow, and how does it allow someone to run their code on a machine?
    http://www.networkmagazine.com/article/NMG20000511S0015

    >how to make sure you do not leave room for a buffer overflow error
    Know what can cause it and avoid those constructs.
    My best code is written with the delete key.

  3. #3
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can't Produce a buffer overflow
    By someprogr in forum C Programming
    Replies: 8
    Last Post: 09-15-2008, 08:59 AM
  2. system() vulnerable to a buffer overflow?
    By Loic in forum C Programming
    Replies: 19
    Last Post: 08-12-2008, 05:33 PM
  3. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  4. Stack overflow errors in 3 areas
    By ulillillia in forum C Programming
    Replies: 13
    Last Post: 04-29-2007, 03:20 PM
  5. Help with threading
    By crazeinc in forum C Programming
    Replies: 2
    Last Post: 06-02-2005, 05:23 PM