libio is seriously broken
H . J . Lu
hjl@valinux.com
Wed Nov 8 13:32:00 GMT 2000
On Wed, Nov 08, 2000 at 01:10:31PM -0800, H . J . Lu wrote:
> The problem is
>
> free (fp->_IO_save_base);
>
> in _IO_free_backup_area () in genops.c. Please keep in mind that libio
> uses ALLOC_BUF for main buffer allocation, which calls mmap. But
> malloc/free is used for _IO_save_base. When we switch between backup
> and main buffer, we have to be very careful. Otherwise, we will be
> screwed. I will see what I can do.
>
Never mind. It was my fault :-).
--
H.J. Lu (hjl@gnu.org)
More information about the Libc-hacker
mailing list