summaryrefslogtreecommitdiff
path: root/previewer
diff options
context:
space:
mode:
authorReuben Green <[email protected]>2019-08-03 22:54:44 +0100
committerraveit65 <[email protected]>2019-08-06 16:25:46 +0200
commit807e54f51919de389c2824df6ccef41947c57911 (patch)
tree5a41441b1a2f9d60de9a720f41fb27789e67cbae /previewer
parentaa8c51c24a3d716986ace9a4104a9632436ccff5 (diff)
downloadatril-807e54f51919de389c2824df6ccef41947c57911.tar.bz2
atril-807e54f51919de389c2824df6ccef41947c57911.tar.xz
prevent segfaults when no document loaded
See the issue report for a description of the bug. The root cause is dereferencing of NULL pointers, specifically the priv->document member of EvWindow structures when no document is loaded. This commit adds checks for a NULL value of priv->document at all the points in the file shell/ev-window.c where this pointer was previously dereferenced without being checked. Fixes 357 (https://github.com/mate-desktop/atril/issues/357)
Diffstat (limited to 'previewer')
0 files changed, 0 insertions, 0 deletions