[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?
- From: 孙世龙 sunshilong <sunshilong369@...>
- Date: Wed, 12 Aug 2020 14:25:13 +0800
Andrew >In 5.3, yes. I pointed out this bug on this very mailing list in
Andrew >November 2017 and it has not been fixed in 5.3, only in 5.4.
I have carefully read your
posts(http://lua-users.org/lists/lua-l/2017-11/msg00149.html) and
studied your discussion with Roberto.
What confuses me is that what problems may occur if the
restriction(i.e. realloc\l_alloc should not fail when shrinking the
block) is broken.
On Tue, Aug 11, 2020 at 6:06 PM Andrew Gierth
<andrew@tao11.riddles.org.uk> wrote:
>
> >>>>> "孙世龙" == 孙世龙 sunshilong <sunshilong369@gmail.com> writes:
>
> 孙世龙> Hi, Sean Conner, Adrian,Roberto
> 孙世龙> I see. I agree with you.
> 孙世龙> Realloc(3) can fail when shrinking the block.
>
> 孙世龙> It seems that Lua has made such an assumption.
>
> In 5.3, yes. I pointed out this bug on this very mailing list in
> November 2017 and it has not been fixed in 5.3, only in 5.4.
>
> --
> Andrew.
- References:
- Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, 孙世龙 sunshilong
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Stefan
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Roberto Ierusalimschy
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Stefan
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Philippe Verdy
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Andrew Gierth
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, 孙世龙 sunshilong
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Sean Conner
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, 孙世龙 sunshilong
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Sean Conner
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, 孙世龙 sunshilong
- Re: Are there some potential problems if I use a self-defined memory acquirement function instead of realloc(3) in the l_alloc function?, Andrew Gierth