summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorReuben Green <[email protected]>2019-08-03 22:54:44 +0100
committerlukefromdc <[email protected]>2019-08-05 23:34:46 +0000
commit82d6a871b48c5054c629c83612b60dba63e70cc9 (patch)
tree13f35f6a7fb8f129737637c1e1dd38d845e173cb /libdocument
parent854048d845c04287deb624e23bc4305558a65add (diff)
downloadatril-82d6a871b48c5054c629c83612b60dba63e70cc9.tar.bz2
atril-82d6a871b48c5054c629c83612b60dba63e70cc9.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 'libdocument')
0 files changed, 0 insertions, 0 deletions