Opened 7 years ago
Closed 7 years ago
#3389 closed defect (fixed)
Buffer overflow in lwgeom_to_geojson
|Reported by:||dbaston||Owned by:||pramsey|
Occurs when writing POLYGON EMPTY to GeoJSON. The problem code was flagged with clang's "scan-build" command, and I confirmed the overflow with -fsanitize=address. Patch is forthcoming.
Change History (2)
comment:1 by , 7 years ago
Note: See TracTickets for help on using tickets.
I started adding cunit tests for the various empty geometry cases to cu_out_geojson.c and then realized I have no idea how these cases are supposed to look in GeoJSON. The POLYGON EMPTY case seems to be the only one with a memory bug, though.