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 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 656 of file lwin_twkb.c.
References twkb_parse_state::check, twkb_parse_state::coords, LW_PARSER_CHECK_NONE, LWDEBUG, LWDEBUGF, lwgeom_from_twkb_state(), twkb_parse_state::pos, s, twkb_parse_state::twkb, twkb_parse_state::twkb_end, and TWKB_IN_MAXCOORDS.
Referenced by cu_twkb_idlist(), cu_twkb_in(), and LWGEOMFromTWKB().