Control: tag -1 + upstream
Control: forwarded -1 https://github.com/telmich/gpm/issues/45

Hi Jakub,

Jakub Wilk wrote:
> gpm crashes when I do "stty cols 1".
[…]
> I think the culprit is the get_console_size() function, which does:
> 
>    (which_mouse->opt_scaley)=(which_mouse->opt_scale)*50*maxx/80/maxy;
> 
> If maxx is small and maxy is large (200 in my case), you could indeed end up
> with opt_scaley set to 0.

Thanks for the bug report. Forwarded to upstream at
https://github.com/telmich/gpm/issues/45 as non of the Debian patches
seem to touch the related lines.

I wonder how to fix this properly? Setting opt_scaley hardcoded to 1
(or another sane value) in case it's 0 or close to? Not sure what side
effects this might have.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to