[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-readline] Crash in readline 7.0 and 6.3 when using horizontal-s
Re: [Bug-readline] Crash in readline 7.0 and 6.3 when using horizontal-scroll-mode
Sun, 13 Nov 2016 17:51:02 +0100
On Sun, 13 Nov 2016 11:24:51 -0500
Chet Ramey <address@hidden> wrote:
> On 11/12/16 1:39 PM, Mateusz Lenik wrote:
> > Hello,
> > originally I encountered this bug in GDB with GEF plugin.
> > The plugin tried to set a custom prompt. Additionally it changed
> > some GDB settings, which translates to the following readline call:
> > rl_set_screen_size(INT_MAX, INT_MAX);
> This is pretty clearly a bug in gdb.
> I'll take a look at the overflow, but that is just a workaround for
> the gdb bug.
Well, according to the documentation for this function
> Function: void rl_set_screen_size (int rows, int cols)
> Set Readline's idea of the terminal size to rows rows and cols
> columns. If either rows or columns is less than or equal to 0,
> Readline's idea of that terminal dimension is unchanged.
INT_MAX is *not* specified as an invalid value. I don't see how this
could be a GDB bug. It uses the provided API and passes a valid value
Description: OpenPGP digital signature