From 089bdc0fcc1d87c6f5fe0835a4f723a6677e9a01 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Tue, 20 Aug 2019 11:15:22 +0200 Subject: Catch invalid simple type that was causing a crash Although the type passes a check that's supposed to find all types with a simple type, and appears to be of a simple type, its primitive type is apparently null. This was causing a segmentation fault. Apparently the code fails to correctly set the primitive type of a pattern-type instance of a union type. Document the known limitation by a QEXPECT_FAIL() in the test; I was unable to find where the primitive type should be set. Task-number: QTBUG-77620 Change-Id: I56b95ed815366c508f71b8af03b6f2a653d338c5 Reviewed-by: Ulf Hermann --- .../qxmlschemavalidator/testdata/QTBUG-77620.xsd | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/auto/qxmlschemavalidator/testdata/QTBUG-77620.xsd (limited to 'tests/auto/qxmlschemavalidator/testdata/QTBUG-77620.xsd') diff --git a/tests/auto/qxmlschemavalidator/testdata/QTBUG-77620.xsd b/tests/auto/qxmlschemavalidator/testdata/QTBUG-77620.xsd new file mode 100644 index 0000000..33657c7 --- /dev/null +++ b/tests/auto/qxmlschemavalidator/testdata/QTBUG-77620.xsd @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.1