[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: BoundsChecker
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 11 Sep 2000 11:28:22 -0300
I have never used BoundChecker, but we frequently run Purify over the code,
without any warning. However, lstring.c does a trick that may bother
BoundChecker: It defines a struct that ends with «char str[1]», and mallocs
it with a bigger size, to fit a string into this field. Maybe BoundChecker
trusts this faked 1 and complains about that.
(It seems that the new ANSI C will have a feature for that.)
-- Roberto