[fpc-pascal] mysterious crashing, maybe related to setlength

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Sep 10 09:56:41 CEST 2009


On 10 Sep 2009, at 09:49, David Emerson wrote:

> Just before I posted the other day, I had discovered a buffer overrun
> via range checking. I took care of it before writing my previous
> message. Maybe there is another buffer overflow that the range checker
> is somehow missing?

If the overflow happens via a pointer access rather than via an array  
index, that's quite possible.

> There IS a local dynamic array to be finalized, so this seems likely.
> However, range checking is not catching it, so I am stumped.

If you are under Linux, you can try compiling with -gv and then run  
your program under Valgrind to see whether that one turns up something.


Jonas



More information about the fpc-pascal mailing list