cellml / libcellml

Repository for libCellML development.
https://libcellml.org
Apache License 2.0
16 stars 21 forks source link

Segfault when importing units from two models #1156

Closed hsorby closed 1 year ago

hsorby commented 1 year ago

I am getting a segfault when importing units defined in model U when importing them from model A and model B where model A imports a component from model B.

hsorby commented 1 year ago

Initial testing is showing that it is not the case of the import as such but trying to import when there is no xmlns:xlink defined but the attribute is used on an import element.

hsorby commented 1 year ago

When this happens, in permissive mode only, the XML reference rule is not set by the parser and the importer does not detect that we have tried to parse an invalid XML file.