[okular] [Bug 425188] Okular crashes opening PDFs from other apps

David Hurka bugzilla_noreply at kde.org
Fri Nov 20 19:00:37 GMT 2020


https://bugs.kde.org/show_bug.cgi?id=425188

David Hurka <david.hurka at mailbox.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |20.12
      Latest Commit|                            |https://invent.kde.org/grap
                   |                            |hics/okular/commit/c6a32751
                   |                            |51ffa5c9045c8186b64e45e4b2c
                   |                            |3ccbf
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #15 from David Hurka <david.hurka at mailbox.org> ---
Git commit c6a3275151ffa5c9045c8186b64e45e4b2c3ccbf by David Hurka.
Committed on 20/11/2020 at 18:01.
Pushed by davidhurka into branch 'release/20.12'.

Fix QScroller crash on Qt < 5.14 and certain screen arrangements

QScrollerPrivate::setDpiFromWidget() before Qt 5.14 crashes
when the target widget does not intersect a physical screen,
because QDesktopWidget returns screen index `-1` in this case,
which leads to an out-of-range read from QApplication::screens(),
which leads to a segfault when reading from an invalid QScreen* pointer.

This adds a workaround that checks for the `-1` situation,
and then tries to resize PageView temporarily to intersect at least some
screen.
FIXED-IN: 20.12

M  +15   -0    part/pageview.cpp

https://invent.kde.org/graphics/okular/commit/c6a3275151ffa5c9045c8186b64e45e4b2c3ccbf

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list