public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Artūras Moskvinas" <arturas.moskvinas@gmail.com>
To: cracraft@cox.net
Cc: help-gcc@gnu.org
Subject: Re: [Fwd: Re: bounds checking a GCC program]
Date: Wed, 06 Dec 2006 17:23:00 -0000	[thread overview]
Message-ID: <4576FC92.1030102@gmail.com> (raw)
In-Reply-To: <14990720.1165424736004.JavaMail.root@fed1wml09.mgt.cox.net>


> The issue that I had to solve by arduously single-stepping
> through a complex program (took a week) turned out to
> be a pointer stepping outside of pre-determined places
> within a single-dimensional array; that is, the pointer
> stayed within the overall array but stepped outside of
> determined areas within the array and this resulted
> in the clobbering of areas elsewhere.
> 
> Having bounds checking that tells me when it stepped
> out of the overall array would not have helped.
> 
> What is needed is something that says has it stepped
> out of a pre-defined area within a single array.
> 
> My application is written in C and maintains its own
> stack which is what was clobbered.
> 


Try www.valgrind.org for program debugging...


Arturas M.

  parent reply	other threads:[~2006-12-06 17:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-06 17:05 Stuart Cracraft
2006-12-06 17:17 ` Perry Smith
2006-12-06 17:23   ` Perry Smith
2006-12-06 17:23 ` Artūras Moskvinas [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-12-06 21:40 Stuart Cracraft
2006-12-06 14:35 Stuart Cracraft
2006-12-06 15:09 ` Tim Prince
2006-12-06 15:43   ` Paulo J. Matos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4576FC92.1030102@gmail.com \
    --to=arturas.moskvinas@gmail.com \
    --cc=cracraft@cox.net \
    --cc=help-gcc@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).