Opened 4 years ago

Closed 4 years ago

#4787 closed defect (duplicate)

Calling ST_GEOMFROMWKB with empty byte array crashes backend

Reported by: topogrids Owned by: pramsey
Priority: medium Milestone: PostGIS 3.1.0
Component: postgis Version:
Keywords: Cc:

Description

SELECT st_geomfromwkb(::bytea) makes backend crash, all backend processes will be terminated, the server goes into recovery mode.

select postgis_version(), version();

postgis_version | version


3.1 USE_GEOS=1 USE_PROJ=1 USE_STATS=1 | PostgreSQL 12.4 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39), 64-bit

Change History (2)

comment:1 by topogrids, 4 years ago

WikiFormatting swallowed the quotes, should be:

SELECT st_geomfromwkb(''::bytea)

comment:2 by Algunenano, 4 years ago

Resolution: duplicate
Status: newclosed

This was fixed in a7851bb0659a86ed63f183fd8f536aa83942add7 with #4767 et al.

Note: See TracTickets for help on using tickets.