From: Daniel Veillard Date: Tue, 22 Apr 2003 14:14:49 +0000 (+0000) Subject: fix a memory related segfault on a pattern compilation error #110189 X-Git-Tag: v1.1.28~689 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7148a132daac147fc545b27c7381e244c1dec0d0;p=platform%2Fupstream%2Flibxslt.git fix a memory related segfault on a pattern compilation error #110189 * libxslt/pattern.c: fix a memory related segfault on a pattern compilation error #110189 Daniel --- diff --git a/ChangeLog b/ChangeLog index 0c5d6c0..d2ec68c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Apr 22 16:01:25 CEST 2003 Daniel Veillard + + * libxslt/pattern.c: fix a memory related segfault on a + pattern compilation error #110189 + Tue Apr 22 15:45:25 CEST 2003 Daniel Veillard * libxslt/variables.c: fixing bug #110020 on global parameter diff --git a/libxslt/pattern.c b/libxslt/pattern.c index b0283e6..6d63a15 100644 --- a/libxslt/pattern.c +++ b/libxslt/pattern.c @@ -1536,7 +1536,7 @@ parse_predicate: xsltTransformError(NULL, NULL, NULL, "xsltCompileStepPattern : ']' expected\n"); ctxt->error = 1; - goto error; + return; } ret = xmlStrndup(q, CUR_PTR - q); PUSH(XSLT_OP_PREDICATE, ret, NULL);