Project

Profile

Help

Bug #5911

closed

SaxonCS crashes when package version number is wrong

Added by Michael Kay almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2023-03-08
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
12, trunk
Fixed in Maintenance Release:
Platforms:
.NET

Description

If the package version number in xsl:use-package is not in the correct lexical form, for example "1.0.0", a crash of the form

Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
   at System.Int32.Parse(String s)
   at Saxon.Hej.style.PackageVersion..ctor(String s) in /Users/mike/....../Saxon/Hej/style/PackageVersion.cs:line 49

results

Please register to edit this issue

Also available in: Atom PDF