libxml2 r3741 - trunk
- From: veillard svn gnome org
- To: svn-commits-list gnome org
- Subject: libxml2 r3741 - trunk
- Date: Mon, 28 Apr 2008 19:07:30 +0100 (BST)
Author: veillard
Date: Mon Apr 28 18:07:29 2008
New Revision: 3741
URL: http://svn.gnome.org/viewvc/libxml2?rev=3741&view=rev
Log:
* parserInternals.c: applied patch from Ashwin to avoid a potential
double-free
Daniel
Modified:
trunk/ChangeLog
trunk/parserInternals.c
Modified: trunk/parserInternals.c
==============================================================================
--- trunk/parserInternals.c (original)
+++ trunk/parserInternals.c Mon Apr 28 18:07:29 2008
@@ -1399,7 +1399,8 @@
if (input == NULL) {
return(NULL);
}
- input->filename = (char *) entity->URI;
+ if (entity->URI != NULL)
+ input->filename = (char *) xmlStrdup((xmlChar *) entity->URI);
input->base = entity->content;
input->cur = entity->content;
input->length = entity->length;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]