#1023618 djview4: division by 0 in QDjVuPrivate::findPosition()

Package:
djview4
Source:
djview4
Description:
Viewer for the DjVu image format
Submitter:
Jakub Wilk
Date:
2022-11-07 17:54:03 UTC
Severity:
normal
#1023618#3
Date:
2022-11-07 17:51:54 UTC
From:
To:
If you open the attached file, set zoom to 1:1 (View → Zoom → One to
one), and the close it, djview4 crashes with SIGFPE.

Backtrace:

#0  0x565874df in QDjVuPrivate::findPosition (this=0x567a1fe0, point=..., closestAnchor=true) at qdjvuwidget.cpp:1773
#1  0x56589794 in QDjVuWidget::positionWithClosestAnchor (this=0x567efed0, point=...) at qdjvuwidget.cpp:2346
#2  0x566211ce in QDjView::getDecoratedUrl (this=0x56799a10) at qdjview.cpp:3401
#3  0x5661ceda in QDjView::closeDocument (this=0x56799a10) at qdjview.cpp:2629
#4  0x5662447b in QDjView::closeEvent (this=0x56799a10, event=0xffffc480) at qdjview.cpp:3768