[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] wprintw insufficient internal buffer
From: |
Thomas Dickey |
Subject: |
Re: [BUG] wprintw insufficient internal buffer |
Date: |
Wed, 29 Sep 2021 20:38:07 -0400 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Thu, Sep 30, 2021 at 12:55:50AM +0300, _RuRo_ (Андрей Стоцкий) wrote:
> I think, I might have found a bug in wprintw and similar functions. Either
> that, or there is an extremely poorly documented edge case to wprintw.
>
> >From my testing, it seems to me, that wprintw and other formatting functions
> >are internally allocating a buffer of size LINES * (COLS+1).
> Normally, this would be okay, since such a large print would fill up the
> screen and be truncated. However, I've found 2 cases where this behaviour
> leads to unexpected results.
yes... I can improve the configuration which you "should" get(*)
(using vsnprintf) so this issue would not occur.
(*) I recall some packagers overriding the configure script in this
area :-)
--
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net
ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature