diff options
Diffstat (limited to 'meta/recipes-extended/texinfo/texinfo-4.13a/texinfo-4.13a-help-index-segfault.patch')
-rw-r--r-- | meta/recipes-extended/texinfo/texinfo-4.13a/texinfo-4.13a-help-index-segfault.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-extended/texinfo/texinfo-4.13a/texinfo-4.13a-help-index-segfault.patch b/meta/recipes-extended/texinfo/texinfo-4.13a/texinfo-4.13a-help-index-segfault.patch new file mode 100644 index 0000000000..6194176db6 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo-4.13a/texinfo-4.13a-help-index-segfault.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | diff -up texinfo-4.13/info/indices.c.orig texinfo-4.13/info/indices.c | ||
2 | --- texinfo-4.13/info/indices.c.orig 2010-08-31 12:04:38.317462471 +0200 | ||
3 | +++ texinfo-4.13/info/indices.c 2010-08-31 12:11:49.322624552 +0200 | ||
4 | @@ -192,6 +192,7 @@ do_info_index_search (WINDOW *window, in | ||
5 | index for, build and remember an index now. */ | ||
6 | fb = file_buffer_of_window (window); | ||
7 | if (!initial_index_filename || | ||
8 | + !fb || | ||
9 | (FILENAME_CMP (initial_index_filename, fb->filename) != 0)) | ||
10 | { | ||
11 | info_free_references (index_index); | ||
12 | @@ -287,8 +288,9 @@ index_entry_exists (WINDOW *window, char | ||
13 | return 0; | ||
14 | |||
15 | fb = file_buffer_of_window (window); | ||
16 | - if (!initial_index_filename | ||
17 | - || (FILENAME_CMP (initial_index_filename, fb->filename) != 0)) | ||
18 | + if (!initial_index_filename || | ||
19 | + !fb || | ||
20 | + (FILENAME_CMP (initial_index_filename, fb->filename) != 0)) | ||
21 | { | ||
22 | info_free_references (index_index); | ||
23 | index_index = info_indices_of_file_buffer (fb); | ||