Project

Profile

Help

Bug #2706

closed

Unlicensed SchemaValidator segmentation error

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

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

100%

Estimated time:
Found in version:
1.0.1
Fixed in version:
1.0.2
Platforms:

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