This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _IO_vfscanf calling realloc


On Tue, May 15, 2012 at 12:20 PM, David Chappelle <chappedm@gmail.com> wrote:
> Thanks for the prompt response. So just to clarify:
>
> PRE 2.15
> ? ?no call made to any allocation function
>
> 2.15
> ? ?realloc call introduced
>
> 2.16
> ? ?realloc call changed to either realloc/alloca depending on size of
> workspace needed

No.

We've had realloc calls in _IO_vfscanf_internal since 1999.

You've probably just never triggered them.

The new code added in 2.15 makes it much more likely to trigger.

Cheers,
Carlos.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]