Package geom implements efficient geometry types for geospatial applications.
Go
976
699 commits
updated Sep 24, 2026
Package geom implements efficient geometry types for geospatial applications.
sql.Scanner and
driver.Value interface
implementations for easy database integration.The WKB and EWKB formats encode geometry sizes, and memory is allocated for
those geometries. If the input is malicious or malformed, the memory allocation
can be very large, leading to a memory starvation denial-of-service attack
against the server. For example, a client might send a MultiPoint with header
indicating that it contains 2^32-1 points. This will result in the server
reading that geometry to allocate 2 × sizeof(float64) × (2^32-1) = 64GB of
memory to store those points. By default, malicious or malformed input
protection is disabled, but can be enabled by setting positive values for
wkbcommon.MaxGeometryElements.
BSD-2-Clause
Go
96.9%
Yacc
2.8%
Package geom implements efficient geometry types for geospatial applications.
Go
976
699 commits
updated Sep 24, 2026
Package geom implements efficient geometry types for geospatial applications.
sql.Scanner and
driver.Value interface
implementations for easy database integration.The WKB and EWKB formats encode geometry sizes, and memory is allocated for
those geometries. If the input is malicious or malformed, the memory allocation
can be very large, leading to a memory starvation denial-of-service attack
against the server. For example, a client might send a MultiPoint with header
indicating that it contains 2^32-1 points. This will result in the server
reading that geometry to allocate 2 × sizeof(float64) × (2^32-1) = 64GB of
memory to store those points. By default, malicious or malformed input
protection is disabled, but can be enabled by setting positive values for
wkbcommon.MaxGeometryElements.
BSD-2-Clause
Go
96.9%
Yacc
2.8%