bug-ncurses
[Top][All Lists]
Advanced

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

Re: Overflow in out_limit calculation


From: Thomas Dickey
Subject: Re: Overflow in out_limit calculation
Date: Tue, 7 May 2024 18:10:11 -0400

On Tue, May 07, 2024 at 08:35:29AM +0200, Miroslav Lichvar wrote:
...
> Here is the report. It seems to be concerned about the malloc, but
> that part seems fine as the other code using the buffer checks
> out_limit instead of assuming it's columns*lines large. (Does the
> buffer actually need to have a char for each cell of the screen?)

The buffer is large enough to avoid most reallocs if someone gives
an waddstr big enough to fill the screen.

-- 
Thomas E. Dickey <dickey@invisible-island.net>
https://invisible-island.net

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]