Skip to content

Deserialization crashes for 64bit Integer DataType #13

@cbalster

Description

@cbalster

Description

In https://github.com/RHEAGROUP/reqifsharp/blob/development/ReqIFSharp/Datatype/DatatypeDefinitionInteger.cs it is assumed that Integers may only ever be 32 bit. E.g.:
https://github.com/RHEAGROUP/reqifsharp/blob/d96203280ded07de2750971d0ac61f9652e2ba65/ReqIFSharp/Datatype/DatatypeDefinitionInteger.cs#L56
https://github.com/RHEAGROUP/reqifsharp/blob/d96203280ded07de2750971d0ac61f9652e2ba65/ReqIFSharp/Datatype/DatatypeDefinitionInteger.cs#L76
This might not necessarily be true. For example Polarion uses 64bit integers by default, thus resulting in the min/max in the DataType definition to be +/- 9.223.372.036.854.775.807. This leads to a crash while deserializing.
As far as I can tell the ReqIF and xml specification do not make any statements about the maximum size allowed.

Steps to Reproduce

Modify an existing .reqif file and adjust the min/max values of an integer DataType definition to use values bigger than a 32 bit int can hold and deserialize it.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions