What type of issue is this?
Prerequisites
Description
Deserialization crashes in DatatypeDefinitionString::ReadXml with the following fragment in the ReqIF file:
<DATATYPE-DEFINITION-STRING DESC="Any string without formatting."
IDENTIFIER="_U62Ck58zEeqqT_YuDrpRtg"
LAST-CHANGE="2020-05-26T11:28:58.424+02:00"
LONG-NAME="T_String"
MAX-LENGTH="4294967295"/>
This happens because ReadXml parses the length as a 32 bit integer but the value is too large to store. A reasonable work around might be to catch the System.OverflowException and just store int.MaxValue in MaxLength.
Steps to Reproduce
System Configuration
- reqifsharp version: 9.2.4
- Environment (Operating system, version and so on):
- .NET Framework version: 9
- Additional information:
What type of issue is this?
Prerequisites
Description
Deserialization crashes in
DatatypeDefinitionString::ReadXmlwith the following fragment in the ReqIF file:This happens because
ReadXmlparses the length as a 32 bit integer but the value is too large to store. A reasonable work around might be to catch theSystem.OverflowExceptionand just storeint.MaxValueinMaxLength.Steps to Reproduce
System Configuration