Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bug fix for zsh 3.0.0



Keith Bostic wrote:
> Some termcap databases (e.g., the one distributed with ncurses) have
> entries larger than 1K.  When combined with termcap library code that
> doesn't limit the length of the copied record to 1K (e.g., old 4BSD
> implementations) it can drop core.

That can only happen if a single capability string is bigger thatn 1024
bytes.  Did you really see a coredump from that part of the code or you
just see it as a theoretical bug?

It is true that if the termcap database is longer that 2048 bytes and
tgetent does not accept NULL to automatically allocate buffer.

Zoltan



Messages sorted by: Reverse Date, Date, Thread, Author