From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,9d6df1ff93671f93,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-10-27 02:58:37 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: jose_luis_fdez_diaz@yahoo.es (Jose Luis Fern?ndez D?az) Newsgroups: comp.unix.tru64 Subject: cxx don't check array bounds bounds in a c++ program Date: 27 Oct 2003 02:58:37 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 161.114.142.51 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1067252317 27309 127.0.0.1 (27 Oct 2003 10:58:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 27 Oct 2003 10:58:37 +0000 (UTC) Xref: archiver1.google.com comp.unix.tru64:10861 Hi, I have the next program (foo.c): #include #include void handler(int i1) { printf("handler, i= %d\n", i1); } void main(void) { int a[10]; int c=10; signal(SIGTRAP, handler); a[c]=-1; } I run the next commands: sqocfms01:vodafone:/tmp>cxx -check_bounds foo.c sqocfms01:vodafone:/tmp>a.out handler, i= 5 sqocfms01:vodafone:/tmp>cp foo.c foo.cxx sqocfms01:vodafone:/tmp>cxx -check_bounds foo.cxx sqocfms01:vodafone:/tmp>a.out How can i check bounds in a c++ program on tru64? Are there any free tool?. I know thrid degree, but it don't check array bounds. Thanks in advance, Jose Luis.