[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: question about luaL_prepbuffsize
- From: TNHarris <telliamed@...>
- Date: Mon, 24 Sep 2012 21:27:40 -0400
On Monday, September 24, 2012 04:41:53 PM Michał Łowicki wrote:
> In line 443 condition (newsize - B->n < sz) is always false for me because
> of 441-442. Isn't it? Also can (newsize < B->n) be true? For me B->n is
> always <= B->size and in 440 we assign size_t newsize = B->size * 2. Thanks
> in advance!
It's for integer overflow. That's why the error is "buffer too large".
--
tom <telliamed@whoopdedo.org>