1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

array oeverruns issue

Discussion in 'C++' started by imported_antony, Feb 26, 2008.

  1. imported_antony

    imported_antony New Member

    Joined:
    Feb 26, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I developed an MMS application for mobile phone using C language under Linux plat form. I want to solve an array overruns issue. Can any one recommend software for bugs fixing?
     
  2. Ranophile

    Ranophile New Member

    Joined:
    Nov 14, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Principal Software Engineer
    Location:
    USA
    When using gcc under Linux, a good tool for identifying memory problems is Valgrind. It can find heap allocated leaks and buffer overflows. Unfortunately, there is not tool I know of that will find overflows in static or auto arrays.

    Anyone else know of one?

    Note: At my company, we use boost::array<> instead of "C" style arrays, and we modified the code to check the index (compile time flag to disable). Where practical, we also use vector<>::at() to check the array indeces.

    - Ranophile
     
  3. fghi532

    fghi532 New Member

    Joined:
    Jan 17, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Tu as raison !

    Tu as raison !
     

Share This Page