PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
WKB inputs must have a declared size, to prevent malformed WKB from reading off the end of the memory segment (this stops a malevolent user from declaring a one-ring polygon to have 10 rings, causing the WKB reader to walk off the end of the memory).
check | parser check flags, see LW_PARSER_CHECK_* macros |
size | length of WKB byte buffer |
wkb | WKB byte buffer |
Check is a bitmask of: LW_PARSER_CHECK_MINPOINTS, LW_PARSER_CHECK_ODD, LW_PARSER_CHECK_CLOSURE, LW_PARSER_CHECK_NONE, LW_PARSER_CHECK_ALL
Definition at line 772 of file lwin_wkb.c.
References wkb_parse_state::check, wkb_parse_state::has_m, wkb_parse_state::has_srid, wkb_parse_state::has_z, LW_FALSE, LW_PARSER_CHECK_NONE, lwgeom_from_wkb_state(), wkb_parse_state::lwtype, wkb_parse_state::pos, s, wkb_parse_state::srid, SRID_UNKNOWN, wkb_parse_state::swap_bytes, wkb_parse_state::wkb, and wkb_parse_state::wkb_size.
Referenced by cu_wkb_in(), geography_from_binary(), geography_recv(), lwgeom_from_hexwkb(), LWGEOM_from_WKB(), LWGEOM_in(), LWGEOM_recv(), LWGEOMFromEWKB(), rt_raster_gdal_polygonize(), rt_raster_gdal_rasterize(), and test_wkb_leak().