Skip to content

3MDEV-28374 UBSAN signed integer overflow PROCEDURE ANALYSE#5038

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

3MDEV-28374 UBSAN signed integer overflow PROCEDURE ANALYSE#5038
grooverdan wants to merge 1 commit intoMariaDB:10.11from
grooverdan:MDEV-28374

Conversation

@grooverdan
Copy link
Copy Markdown
Member

PROCEDURE ANALYSE returns a Std (Standard deviation) which involves the sum of squares, which can exceed the longlong datatypes.

Emit a ER_DATA_OVERFLOW warning when encountering types that overflow the values for the Std output.

Adjust the sum_sqr value to double to acocunt that its only used in a double context and precision isn't required.

@grooverdan grooverdan requested a review from abarkov May 4, 2026 04:19
@grooverdan grooverdan added the MariaDB Foundation Pull requests created by MariaDB Foundation label May 4, 2026
@grooverdan grooverdan force-pushed the MDEV-28374 branch 2 times, most recently from 780f4ab to 5bc7f18 Compare May 4, 2026 06:39
PROCEDURE ANALYSE returns a Std (Standard deviation) which involves the
sum of squares, which can exceed the longlong datatypes.

Emit a ER_DATA_OVERFLOW warning when encountering types that overflow
the values for the Std output.

Adjust the sum_sqr value to double to acocunt that its only used in a
double context and precision isn't required.
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.

1 participant