Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash in GEOSIntersects with empty point inputs #673

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

dbaston
Copy link
Member

@dbaston dbaston commented Sep 6, 2022

@dr-jts
Copy link
Contributor

dr-jts commented Sep 12, 2022

Probably needs a NEWS entry?

void object::test<7>
()
{
std::string wkb1 = "0103000080010000000C000000D76CFA7C7CF3FFC1B982482636CDCBC15EC31B0E65B6C1C12E877662F4E700C2103B2D82C78DCFC1A29779FE5D09E1C123CB6770DEF3FFC1FCDADA768882CBC17A8FA0B9C080CBC1482374FCF95200C26C3E6539D010EB41502415824E2BDCC1F846A740265CFCC1849036017A69EC41C0AE6BA9836DB6C1B03E5F6E25BBEFC16CB0BE5B0C05E54156D5BAAB3988FDC1887692F5A0B5E1C14E5950599AB8C6413600EDEF3251F3C1483B4D575A32FF417C70666B8C74EB410A04298CBF8AE7C1AEEB2DC41939E1C16D2B823AAC97C441FCE7F04C7BBDE0C184D82356622AEA4161A19916C828F5C1414C7E9080C9FAC12A178C59F5F0FEC1668C89B9F61CFCC1E8964B49B6FEEC41D76CFA7C7CF3FFC1B982482636CDCBC15EC31B0E65B6C1C1";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nicer to use WKT here, so it's obvious that the input has en EMPTY element.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following test uses WKT for clarity. This test uses the geometry from the ticket.

@dbaston
Copy link
Member Author

dbaston commented Sep 12, 2022

Probably needs a NEWS entry?

geos/NEWS

Lines 1 to 6 in a823357

Changes in 3.6.6dev
YYYY-MM-DD
- Bug fixes / improvements
- Fix segfault in Hausdorff distance with empty geometries (GH-569)
- Fix crash in GEOSIntersects with EMPTY inside collection (#1110, Dan Baston)

@dr-jts
Copy link
Contributor

dr-jts commented Sep 12, 2022

@dbaston Bug fixes should have NEWS entries for each minor version affected, surely?

We should decide on this policy and document it on a page on the website.

@dbaston
Copy link
Member Author

dbaston commented Sep 12, 2022

@dbaston Bug fixes should have NEWS entries for each minor version affected, surely?

We should decide on this policy and document it on a page on the website.

Happy to go along with any policy on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants