Find the answer to your Linux question:
Results 1 to 2 of 2
hi, If i hav a pre allocated buffer of some 50 byts. Now iam doing to over write this buffer with some data . In that case , what is ...
  1. #1
    Linux Newbie
    Join Date
    Oct 2006
    Posts
    107

    Valgrind

    hi,



    If i hav a pre allocated buffer of some 50 byts. Now iam doing to over write this buffer with some data . In that case , what is role of Valgrind ,Means Is valgrind will play any role in this case ? .


    The Interviewer has ask me this question?

    Pls help me..

    Thnaks in Advance.

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    Valgrind is a memory profiling and debugging utility.

    It does plenty of checks to detect memory leak, improper usage of buffer, overwriting memory, and so on.

    It also specifies if the allocated memory is overlapped while adding some data at some offset of the given buffer.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...