Commit aa3bcfa
libview: Check number of pages on ev_view_document_changed_cb
Fix crash on corrupted PDF with no pages.
Thanks to Juha Kylmänen from OUSPG who were testing robutness.
(CVE-2013-3718).
libview: Fix warning on ev_view_document_changed_cb
There was an introduction of a warning when fixing the bug
https://bugzilla.gnome.org/show_bug.cgi?id=701302
If ev_view_document_changed_cb () is emitted when there
is no previous document, the check fails.
This patch change the order of the condition checks.
origin commits:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=62b1585
https://git.gnome.org/browse/evince/commit/?h=gnome-3-8&id=54315951 parent 6346384 commit aa3bcfa
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6769 | 6769 | | |
6770 | 6770 | | |
6771 | 6771 | | |
6772 | | - | |
| 6772 | + | |
6773 | 6773 | | |
6774 | 6774 | | |
6775 | 6775 | | |
| 6776 | + | |
| 6777 | + | |
| 6778 | + | |
| 6779 | + | |
6776 | 6780 | | |
6777 | | - | |
6778 | 6781 | | |
6779 | 6782 | | |
6780 | 6783 | | |
| |||
0 commit comments