NULL-terminate context->attr_values so g_strfreev() is safe. Would

2002-01-28  Havoc Pennington  <hp@pobox.com>

	* glib/gmarkup.c (add_attribute): NULL-terminate
	context->attr_values so g_strfreev() is safe.
	Would previously crash if parsing was ended prior
	to ending the start tag.
	(g_markup_parse_context_parse): add a couple assertions
This commit is contained in:
Havoc Pennington
2002-01-29 03:42:23 +00:00
committed by Havoc Pennington
parent b8e36f4539
commit 3370260a13
9 changed files with 71 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
2002-01-28 Havoc Pennington <hp@pobox.com>
* glib/gmarkup.c (add_attribute): NULL-terminate
context->attr_values so g_strfreev() is safe.
Would previously crash if parsing was ended prior
to ending the start tag.
(g_markup_parse_context_parse): add a couple assertions
2002-01-28 Havoc Pennington <hp@redhat.com>
* glib/gmacros.h: get rid of warning here