[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7645] check null in get_tags_of_indirect_tags_table
From: |
gavinsmith0123 |
Subject: |
[7645] check null in get_tags_of_indirect_tags_table |
Date: |
Sat, 21 Jan 2017 15:32:23 -0500 (EST) |
Revision: 7645
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7645
Author: gavin
Date: 2017-01-21 15:32:23 -0500 (Sat, 21 Jan 2017)
Log Message:
-----------
check null in get_tags_of_indirect_tags_table
Modified Paths:
--------------
trunk/ChangeLog
trunk/info/nodes.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2017-01-21 18:07:22 UTC (rev 7644)
+++ trunk/ChangeLog 2017-01-21 20:32:23 UTC (rev 7645)
@@ -1,5 +1,11 @@
2017-01-21 Gavin Smith <address@hidden>
+ * info/nodes.c (get_tags_of_indirect_tags_table): Check if
+ 'tags' field of file buffer record is null. This avoids
+ dereferencing a null pointer. (Report from Hanno B\xF6ck.)
+
+2017-01-21 Gavin Smith <address@hidden>
+
* tp/Texinfo/Convert/HTML.pm (_file_header_information):
Place name of manual in parentheses after the name of the page,
instead of before it. This is so that if several pages from a
Modified: trunk/info/nodes.c
===================================================================
--- trunk/info/nodes.c 2017-01-21 18:07:22 UTC (rev 7644)
+++ trunk/info/nodes.c 2017-01-21 20:32:23 UTC (rev 7645)
@@ -356,6 +356,8 @@
/* First get the list of tags from the tags table. Then lookup the
associated file in the indirect list for each tag, and update it. */
get_nodes_of_tags_table (file_buffer, tags_binding);
+ if (!file_buffer->tags)
+ return;
/* We have the list of tags in file_buffer->tags. Get the list of
subfiles from the indirect table. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7645] check null in get_tags_of_indirect_tags_table,
gavinsmith0123 <=