avoid memory corruption (#357050).

2006-11-07  Paolo Borelli  <pborelli@katamail.com>

	* gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
	corruption (#357050).
This commit is contained in:
Paolo Borelli 2006-11-07 15:41:42 +00:00 committed by Paolo Borelli
parent 853f5e5fc2
commit f3a47fc835
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2006-11-07 Paolo Borelli <pborelli@katamail.com>
* gtk/gtktextbtree.c (_gtk_text_btree_delete): avoid memory
corruption (#357050).
2006-11-06 Alexander Larsson <alexl@redhat.com>
* gtk/gtkdnd.c: (gtk_drag_begin_internal),

View File

@ -886,6 +886,7 @@ _gtk_text_btree_delete (GtkTextIter *start,
start_line->segments = seg;
}
else if (prev_seg->next &&
prev_seg->next != last_seg &&
seg->type == &gtk_text_toggle_off_type &&
prev_seg->next->type == &gtk_text_toggle_on_type &&
seg->body.toggle.info == prev_seg->next->body.toggle.info)