Skip to content

MDEV-35595 UBSAN: runtime error: load of value 3 for wkbByteOrder#5032

Open
grooverdan wants to merge 1 commit intoMariaDB:10.11from
grooverdan:MDEV-35595
Open

MDEV-35595 UBSAN: runtime error: load of value 3 for wkbByteOrder#5032
grooverdan wants to merge 1 commit intoMariaDB:10.11from
grooverdan:MDEV-35595

Conversation

@grooverdan
Copy link
Copy Markdown
Member

When creating Geometry objects from raw bytes, validate the byte order is not > wkb_ndr, a constant for little endian being the upper bound of the wkbByteOrder.

The 3 validation locations are the callers to the other init_from_wkb functions for other geometry types, which prevent an invalid value from reaching wkb_get_uint.

When creating Geometry objects from raw bytes, validate the byte order
is not > wkb_ndr, a constant for little endian being the upper bound of
the wkbByteOrder.

The 3 validation locations are the callers to the other init_from_wkb
functions for other geometry types, which prevent an invalid value from
reaching wkb_get_uint.
@grooverdan grooverdan requested a review from holyfoot May 3, 2026 06:58
@grooverdan grooverdan added the MariaDB Foundation Pull requests created by MariaDB Foundation label May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Foundation Pull requests created by MariaDB Foundation

Development

Successfully merging this pull request may close these issues.

2 participants