diff options
author | Reuben Green <[email protected]> | 2019-08-03 22:54:44 +0100 |
---|---|---|
committer | lukefromdc <[email protected]> | 2019-08-05 23:34:46 +0000 |
commit | 82d6a871b48c5054c629c83612b60dba63e70cc9 (patch) | |
tree | 13f35f6a7fb8f129737637c1e1dd38d845e173cb /shell/ev-window-title.c | |
parent | 854048d845c04287deb624e23bc4305558a65add (diff) | |
download | atril-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 'shell/ev-window-title.c')
0 files changed, 0 insertions, 0 deletions