Is realloc(3) permitted to fail when shrinking a block?

Dan Kegel dank@kegel.com
Tue Aug 11 03:58:55 GMT 2020


If the heap's corrupt, yes, it can fail...

On Mon, Aug 10, 2020 at 8:54 PM 孙世龙 sunshilong via Gcc-help <
gcc-help@gcc.gnu.org> wrote:

> As the subject, I couldn't find any positive or negative statements
> about this matter in the Linux Programmer's Manual.
>
> Could somebody shed some light on this matter?
>
> Thank you for your attention to this matter.
> Best regards.
> Sunshilong
>
>


More information about the Gcc-help mailing list