On Sun, 13 Nov 2016 11:24:51 -0500 Chet Ramey <[email protected]> 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 (https://cnswww.cns.cwru.edu/php/chet/readline/readline.html): > 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 to it. -- mlen
pgpjbofmR0Z3Y.pgp
Description: OpenPGP digital signature
_______________________________________________ Bug-readline mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-readline
