[fpc-devel] 019605: Safety check for "const s: string" (similar to Range or Overflow checks)

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Jun 23 21:58:09 CEST 2011


On 23 Jun 2011, at 21:45, Martin wrote:

> It may bne rare, sure. But it is also one that is very hard to find. Because code like this may run without crash, for a long time, and by the time one notices it, it is hard to track. And *if* const param are used, it is easy to sneak in, even if the author is available of it (which I believe very very few people are)

FWIW: Valgrind should also be able to identify such errors (of course, it requires that you are on a platform that's supported by Valgrind)


Jonas


More information about the fpc-devel mailing list