Project

Profile

Help

Bug #2706

closed

Unlicensed SchemaValidator segmentation error

Added by O'Neil Delpratt over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
C++ API
Start date:
2016-04-11
Due date:
% Done:

100%

Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
1.0.1
Fixed in version:
1.0.2
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:

Description

A user recently discovered that instantiating an unlicensed copy of the SchemaValidator does not terminate properly and will eventually lead to a segmentation error if the SchemaValidator object is later used. This can happen where the license file is not present in EE, a call made via PE or HE.

Details on the error and what is produced see https://github.com/rimmartin/saxon-node/issues/7#issuecomment-206097271

In this situation, we need to properly check if an exception is thrown in the constructor. A user can then check this in their code as it is their responsibility to make sure a license file is available and that they are using the correct product.

Please register to edit this issue

Also available in: Atom PDF