Skip to content

MDEV-40310 Connect use-of-uninitialized-value in XFILE::Write#5364

Open
grooverdan wants to merge 1 commit into
MariaDB:11.8from
grooverdan:MDEV-40310
Open

MDEV-40310 Connect use-of-uninitialized-value in XFILE::Write#5364
grooverdan wants to merge 1 commit into
MariaDB:11.8from
grooverdan:MDEV-40310

Conversation

@grooverdan

Copy link
Copy Markdown
Member

When writing date types to an index, Connect Engine only had 4 bytes initialized, however 8 bytes where being written.

Changed the type to 8 bytes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request addresses MDEV-40310 by fixing a use-of-uninitialized-value issue. Specifically, in storage/connect/valblk.cpp, the allocation block for TYPE_DATE has been updated to instantiate TYPBLK<ulonglong> instead of DATBLK. Additionally, a regression test case has been added to verify this fix. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@gkodinov gkodinov added the MariaDB Foundation Pull requests created by MariaDB Foundation label Jul 9, 2026
When writing date types to an index, Connect Engine only
had 4 bytes initialized, however 8 bytes where being written.

Changed the type to 8 bytes.
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.

3 participants