#1138 closed defect (fixed)
Crash on invalid GeoJSON input (GEOS compiled in Debug mode)
Reported by: | caspervdw | Owned by: | rouault |
---|---|---|---|
Priority: | major | Milestone: | 3.10.1 |
Component: | Default | Version: | main |
Severity: | Significant | Keywords: | |
Cc: |
Description
I have been wrapping the new GeoJSON reader and writer in pygeos and encountered a few issues.
One issue is that GEOS crashes (aborts) on invalid geojson input ‘{“no”: “GeoJSON”}’. It seems that all places where a field is expected by the reader (e.g. “type”) the exception handling is not OK.
Change History (7)
comment:1 by , 17 months ago
comment:2 by , 17 months ago
So the crash only occurs when GEOS is built with "-DCMAKE_BUILD_TYPE=Debug".
When using -DCMAKE_BUILD_TYPE=Release, the issue goes away.
comment:3 by , 17 months ago
Severity: | Unassigned → Annoyance |
---|---|
Summary: | Crash on invalid GeoJSON input → Crash on invalid GeoJSON input (GEOS compiled in Debug mode) |
comment:4 by , 17 months ago
Owner: | changed from | to
---|---|
Severity: | Annoyance → Significant |
comment:7 by , 17 months ago
Thanks for the fix! I actually have triggered this issue now also with a Release build, on OSX.
Note:
See TracTickets
for help on using tickets.
This issue is not reproducible on a CI runner (see https://github.com/pygeos/pygeos/pull/413)
I will investigate what is going wrong on my local build.