lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

It seem that it is only when the insert_s() is called from LoadTString from
lundump.c ?


----- Original Message -----
From: "Roberto Ierusalimschy" <>
To: "Multiple recipients of list" <>
Sent: Monday, September 11, 2000 4:28 PM
Subject: Re: BoundsChecker

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