anjuta r4165 - in trunk: . plugins/symbol-db
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: anjuta r4165 - in trunk: . plugins/symbol-db
- Date: Wed, 20 Aug 2008 09:56:08 +0000 (UTC)
Author: jhs
Date: Wed Aug 20 09:56:08 2008
New Revision: 4165
URL: http://svn.gnome.org/viewvc/anjuta?rev=4165&view=rev
Log:
2008-08-20 Johannes Schmid <jhs gnome org>
* plugins/symbol-db/symbol-db-engine.c
(sdb_engine_populate_db_by_tags):
Fixed a crasher in symbol-db due to use of uninitialised memory
Modified:
trunk/ChangeLog
trunk/plugins/symbol-db/symbol-db-engine.c
Modified: trunk/plugins/symbol-db/symbol-db-engine.c
==============================================================================
--- trunk/plugins/symbol-db/symbol-db-engine.c (original)
+++ trunk/plugins/symbol-db/symbol-db-engine.c Wed Aug 20 09:56:08 2008
@@ -1242,10 +1242,14 @@
else
g_timer_reset (sym_timer_DEBUG);
gint tags_total_DEBUG = 0;
-
+ tag_entry.file = NULL;
while (tagsNext (tag_file, &tag_entry) != TagFailure)
{
gint file_defined_id = 0;
+ if (tag_entry.file == NULL)
+ {
+ continue;
+ }
if (file_defined_id_cache > 0)
{
if (g_str_equal (tag_entry.file, tag_entry_file_cache))
@@ -1268,6 +1272,7 @@
force_sym_update);
tags_total_DEBUG ++;
+ tag_entry.file = NULL;
}
g_free (tag_entry_file_cache);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]