Thread: why this bug accures

  1. #1
    Banned
    Join Date
    Oct 2008
    Posts
    1,535

    why this bug accures

    run time check failure #2

    stack around str was corrupted

    the problem is that it points to the last col of a function
    so i cant see where in what line which involves str
    i have this error

  2. #2
    pwning noobs Zlatko's Avatar
    Join Date
    Jun 2009
    Location
    The Great White North
    Posts
    132
    You have probably written past the end of the str memory. Check if you are doing a strcpy or sprintf into str that is too large for str to handle. It may also be another variable around str that is being corrupted. If you make str larger, the problem might go away, but you really should understand the cause and code to prevent it with safer functions, such as strncpy or snprintf.

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    Post the code snippet that is causing this error.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gaks bug?
    By Yarin in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 08-31-2008, 02:47 PM
  2. Debugging a rare / unreproducible bug..
    By g4j31a5 in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 08-05-2008, 12:56 PM
  3. ATL bug of CComPtr?
    By George2 in forum Windows Programming
    Replies: 6
    Last Post: 04-07-2008, 07:52 AM
  4. What is year 2038 bug?
    By year2038bug in forum A Brief History of Cprogramming.com
    Replies: 67
    Last Post: 09-04-2005, 06:25 PM
  5. Bug with cboard?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 09-08-2004, 01:34 PM