/[packages]/cauldron/evince/current/SOURCES/Check-for-NULL-in-synctex_backward_search.patch
ViewVC logotype

Contents of /cauldron/evince/current/SOURCES/Check-for-NULL-in-synctex_backward_search.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 97388 - (show annotations) (download)
Wed May 11 23:21:00 2011 UTC (12 years, 10 months ago) by pterjan
File size: 1384 byte(s)
- Add few fixes from 2-32 git branch (CVE-2010-2640, CVE-2010-2641, CVE-2010-2642, CVE-2010-2643)
- Add patch from 3-0 branch to support new poppler api
1 From a933a516e9b6a4199d22055f9041747e00498901 Mon Sep 17 00:00:00 2001
2 From: José Aliste <jaliste@src.gnome.org>
3 Date: Wed, 29 Sep 2010 16:22:32 +0000
4 Subject: [libdocument] Check for NULL in synctex_backward_search.
5
6 Fixes bug #630845
7 ---
8 diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
9 index 70349dc..742b51c 100644
10 --- a/libdocument/ev-document.c
11 +++ b/libdocument/ev-document.c
12 @@ -419,11 +419,16 @@ ev_document_synctex_backward_search (EvDocument *document,
13 /* We assume that a backward search returns either zero or one result_node */
14 node = synctex_next_result (scanner);
15 if (node != NULL) {
16 - result = g_new (EvSourceLink, 1);
17 - result->filename = synctex_scanner_get_name (scanner,
18 - synctex_node_tag (node));
19 - result->line = synctex_node_line (node);
20 - result->col = synctex_node_column (node);
21 + const gchar *filename;
22 +
23 + filename = synctex_scanner_get_name (scanner, synctex_node_tag (node));
24 +
25 + if (filename) {
26 + result = g_new (EvSourceLink, 1);
27 + result->filename = filename;
28 + result->line = synctex_node_line (node);
29 + result->col = synctex_node_column (node);
30 + }
31 }
32 }
33
34 --
35 cgit v0.9

  ViewVC Help
Powered by ViewVC 1.1.30