Skip to content

v1.4.0 — .NET 8 and .NET 10, per-call limits, resource access control

Choose a tag to compare

@sashokfestival sashokfestival released this 09 Oct 12:09
· 4 commits to main since this release

Adds .NET 8 and .NET 10 builds, per-call time and memory limits, and control over what a stylesheet may
reach outside the transformation. It closes a long list of defects found in three reviews of the port.
Some behaviour changed: read Upgrading from 1.3 in CHANGELOG.md
before replacing 1.3.x in a host.

  • Platforms. One package with net472, net8.0 and net10.0 builds. Legacy code pages resolve on .NET 8/10.

  • Limits per call. ProcessorOptions.MaxMemoryBytes (500 MB by default) bounds what one compile, document
    build, transformation, query or XPath evaluation holds. Past it the call stops with SXLM0003.
    TransformTimeout (one minute by default) now applies to every call on its own, including each evaluation of
    a reused XPathSelector and each CallFunction, and to every phase of compilation.
    StackSizeThreshold sets how much stack a recursion must leave free.

  • Resource access. AllowFileRead, AllowFileWrite, AllowNetwork, AllowEnvironmentVariables, host
    allow/deny rules (exact, wildcard, regex, CIDR) and filters. Everything stays allowed by default.

  • Security. Two output-escaping fixes, both present in 1.3.3:

    • U+0000 in host strings or under version="1.1" switched escaping off, so data came out as markup;
    • a comment written through the XmlWriter faces could inject markup.

    Entity expansion is capped on every host.

  • Stability. Deep input, long expression chains and runaway work stop with a coded error instead of
    killing the process with a stack overflow or running past the time limit. Memory and file-lock leaks are
    closed.

  • Behaviour changes worth knowing:

    • parse errors arrive as DAXonApiException (SXXP0003);
    • JsonBuilder decodes escapes (SetEscaped(true) keeps the old form);
    • XdmValue.ToString() serializes the value;
    • collation strength=primary no longer ignores punctuation;
    • UTF-16LE/BE are written without a byte order mark unless asked;
    • DTD validation reports errors;
    • XInclude is refused explicitly.

    The full list is in the changelog.

  • Faster. Compilation, regex, XSLT 1.0-style comparisons and small repeated API calls. A reused selector
    allocates a quarter of what 1.3.3 did.

  • AssemblyVersion is 1.4.0.0. The assembly is not strong-named, so hosts built against 1.3 load it without
    a binding redirect. No public member was removed, so a host compiled against 1.3.3 runs on 1.4.0 without
    recompiling.

The full W3C QT3 + XSLT 3.0 conformance corpora pass at the documented baseline: 38 554 cases, 17 known
failures (XML 1.1 input documents). The runner in tests/QT3Test reproduces this. CI builds all three targets
and smoke-tests them on Windows, and the .NET 8 and .NET 10 builds also on Linux.

Assets: OutSmart.DAXon.dll is the .NET Framework 4.7.2 build, as in previous releases.
OutSmart.DAXon-1.4.0.zip carries all three builds under net472/, net8.0/ and net10.0/. On NuGet the
package picks the right one automatically.