Branch: refs/heads/master
  Home:   https://github.com/fvwmorg/fvwm
  Commit: 3734d45a762b92983ca0809b0270a26556dc87b0
      
https://github.com/fvwmorg/fvwm/commit/3734d45a762b92983ca0809b0270a26556dc87b0
  Author: Stefan Schaeckeler <schae...@gmx.net>
  Date:   2020-10-17 (Sat, 17 Oct 2020)

  Changed paths:
    M NEWS
    M modules/FvwmPager/x_pager.c

  Log Message:
  -----------
  Division by zero in FvwmPager when desk_h==0 or desk_w==0

gdb -c FvwmPager.core /usr/local/lib/X11/fvwm2/2.6.9/FvwmPager
GNU gdb (GDB) 8.3
...
Reading symbols from /usr/local/lib/X11/fvwm2/2.6.9/FvwmPager...
[New process 1]
Core was generated by `FvwmPager'.
Program terminated with signal SIGFPE, Arithmetic exception.
    at x_pager.c:1938
1938        vy = Event->xbutton.y * Scr.VHeight / (desk_h * 
Scr.MyDisplayHeight);

(gdb) p desk_h
$1 = 0

(gdb) p  Event->xbutton.y
$31 = -1
(gdb) p Scr.VHeight
$32 = 1080
(gdb) p desk_h
$33 = 0
(gdb) p Scr.MyDisplayHeight
$34 = 1080

(gdb) p Event->xbutton.x
$38 = 33
(gdb) p Scr.VWidth
$39 = 1920
(gdb) p desk_w
$40 = 64
(gdb) p Scr.MyDisplayWidth
$41 = 1920



Reply via email to