mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-29 01:49:22 +03:00
fix crash from double free of name for bug #501760
* pattern.c: fix crash from double free of name for bug #501760 svn path=/trunk/; revision=3667
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
Tue Dec 6 11:07:42 CET 2007 Rob Richards <rrichards@ctindustries.net>
|
||||
|
||||
* pattern.c: fix crash from double free of name for bug #501760
|
||||
|
||||
Fri Nov 23 11:47:48 CET 2007 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* threads.c: remove unused variable in __xmlGlobalInitMutexLock
|
||||
|
@ -1091,6 +1091,7 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
|
||||
}
|
||||
}
|
||||
XML_PAT_FREE_STRING(ctxt, prefix);
|
||||
name = NULL;
|
||||
if (token == NULL) {
|
||||
if (CUR == '*') {
|
||||
NEXT;
|
||||
@ -1157,6 +1158,7 @@ xmlCompileStepPattern(xmlPatParserContextPtr ctxt) {
|
||||
}
|
||||
}
|
||||
XML_PAT_FREE_STRING(ctxt, prefix);
|
||||
name = NULL;
|
||||
if (token == NULL) {
|
||||
if (CUR == '*') {
|
||||
NEXT;
|
||||
|
Reference in New Issue
Block a user