Re: [ROOT] array boundary checking

From: Jiri Masik (Jiri.Masik@cern.ch)
Date: Mon Sep 16 2002 - 15:53:08 MEST


Dariusz Miskowiec <D.Miskowiec@gsi.de> writes:

> Hello ROOT team
> 
> I have the impression that ROOT (3.03/08 on linux) is too 
> tolerant:
> 
> root [0] int ar[20]
> root [1] ar[0]
> (int)0
> root [2] ar[19]
> (int)0
> root [3] ar[20]
> (int)0
> root [4] ar[21]
> Error: Array index out of range ar[21] -> [21]  valid upto ar[19] FILE:/tmp/filelcNbJE_cint LINE:1
> *** Interpreter error recovered ***
> 

Hi Dariusz,

see Masa's reply in http://root.cern.ch/root/cinttalk/cint02/0300.html
cheers
        Jiri



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:10 MET