From: Stuart Cracraft <cracraft@cox.net>
To: help-gcc@gnu.org, tprince@myrealbox.com,
"Paulo J. Matos" <pocm@soton.ac.uk>
Subject: Re: [Fwd: Re: bounds checking a GCC program]
Date: Wed, 06 Dec 2006 17:05:00 -0000 [thread overview]
Message-ID: <14990720.1165424736004.JavaMail.root@fed1wml09.mgt.cox.net> (raw)
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.
Stuart
---- "Paulo J. Matos" <pocm@soton.ac.uk> wrote:
> On 12/6/06, Tim Prince <timothyprince@sbcglobal.net> wrote:
> > Stuart Cracraft wrote:
> > > Hi - I have a complex C program that needs to be bounds-checked
> > > according to others in the particular sub-field.
> > >
> > > Is there a bounds checker for GCC? I run GCC 4.1.
> > >
> > > Thanks ahead,
> > >
> >
> > Read about -fbounds-check in 'info gcc'
> >
>
> It seems to support only Java and Fortran, right?
> -fbounds-check
> For front-ends that support it, generate additional code to check that
> indices used to access arrays are within the declared range. This is
> currently only supported by the Java and Fortran 77 front-ends, where
> this option defaults to true and false respectively.
>
>
> Which doesn't fit OP requirements.
>
> --
> Paulo Jorge Matos - pocm at soton.ac.uk
> http://www.personal.soton.ac.uk/pocm
> PhD Student @ ECS
> University of Southampton, UK
next reply other threads:[~2006-12-06 17:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 17:05 Stuart Cracraft [this message]
2006-12-06 17:17 ` Perry Smith
2006-12-06 17:23 ` Perry Smith
2006-12-06 17:23 ` Artūras Moskvinas
-- 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=14990720.1165424736004.JavaMail.root@fed1wml09.mgt.cox.net \
--to=cracraft@cox.net \
--cc=help-gcc@gnu.org \
--cc=pocm@soton.ac.uk \
--cc=tprince@myrealbox.com \
/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).