You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/01/27 12:15:08 UTC
DO NOT REPLY [Bug 16448] New: -
system-property segfaults for undefined namespace
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16448>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16448
system-property segfaults for undefined namespace
Summary: system-property segfaults for undefined namespace
Product: XalanC
Version: 1.4.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: Other
Component: XalanC
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: per@computer.org
using eg. system-property("xxxx:version") will result in a segfault.
I'm not sure if this expected behaviour, but this will fix it:
--- xml-xalan.cvs/c/src/./XSLT/FunctionSystemProperty.cpp Sat Jan 4
00:42:39 2003
+++ xml-xalan/c/src/./XSLT/FunctionSystemProperty.cpp Mon Jan 27 11:45:49 2003
@@ -153,6 +153,12 @@
locator);
}
}
+ else
+ {
+ executionContext.warn(
+ "Only the XSLT namespace is supported in the function
system-property()",
+ context, locator );
+ }
}
else
{
@@ -182,10 +188,7 @@
}
}
- // We should never get here...
- assert(false);
-
- return XObjectPtr();
+ return executionContext.getXObjectFactory().createNull();
}