NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/54272: libedit segfaults on Linux aarch64 build



This does not seem right:

1. The "area" argument is not an argument to terminal_alloc(), but to tgetstr() which takes as the third argument a char **. In fact you should get a warning if you remove the &.
2. The initialization is extraneous since the area argument is only supposed to be used as scratch space in tgetstr().

What might be happening, is that tgetstr() writes to the id argument on linux?

christos


Home | Main Index | Thread Index | Old Index