Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract some of #3360 fixes to 10.6.x #3493

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

ParadoxV5
Copy link
Contributor

@ParadoxV5 ParadoxV5 commented Sep 1, 2024

  • The Jira issue number for this PR is: MDEV-21978
    • Update: The Jira issue number for this PR is: MDEV-35430
  • Sibling of Extract some of #3360 fixes to 10.5.x #3485
  • To clarify, my coding period for Google Summer of Code (GSoC) 2024 ended.
    While this code originates from my GSoC project, this publication (i.e., commit and PR descriptions) isn’t.

Description

#3360 uncovered countless potential minor security vulnerabilities on my_snprintf uses.
This commit ports a squashed subset of their fixes according to the bug-fixing process to 10.6, covering cases that weren’t applicable for 10.5 (#3485).
(My GSoC mentor said that they aren’t much of a problem and I can open a PR normally.)

Similar to #3485, I haven’t changed size_ts from %d to %u and haven’t searched issues obsolete in 11.6.

Release Notes

Nothing either?

  • Fixed data size mismatches that were garbling outputs (or possibly even crashes) on problematic platforms – mostly on error messages and debug logs

How can this PR be tested?

I’m not certain how we could catch these human errors besides testing #3360 (MDEV-21978) and syncing this PR with it.

Basing the PR against the correct MariaDB version

  • This is a new feature or a refactoring, and the PR is based against the main branch.
  • This is a bug fix, and the PR is based against the earliest maintained branch in which the bug can be reproduced.

PR quality check

  • I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
  • For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.

ParadoxV5 added a commit to ParadoxV5/MariaDB-server that referenced this pull request Sep 13, 2024
That PR uncovered countless issues on `my_snprintf` uses.
This commit backports a squashed subset of their fixes.
(Excludes previous parts MariaDB#3485 and MariaDB#3493)
ParadoxV5 added a commit to ParadoxV5/MariaDB-server that referenced this pull request Sep 14, 2024
That PR uncovered countless issues on `my_snprintf` uses.
This commit backports a squashed subset of their fixes.
(Excludes previous parts MariaDB#3485 and MariaDB#3493)
ParadoxV5 added a commit to ParadoxV5/MariaDB-server that referenced this pull request Nov 15, 2024
That PR uncovered countless issues on `my_snprintf` uses.
This commit backports a squashed subset of their fixes.
(Excludes previous parts MariaDB#3485 and MariaDB#3493)
That PR uncovered countless issues on `my_snprintf` uses.
This commit backports a squashed subset of their fixes (excludes MariaDB#3485).
@grooverdan grooverdan merged commit d5f16d6 into MariaDB:10.6 Nov 18, 2024
12 checks passed
@ParadoxV5 ParadoxV5 deleted the 10.6-my_snprintf branch November 18, 2024 02:44
grooverdan pushed a commit that referenced this pull request Nov 18, 2024
That PR uncovered countless issues on `my_snprintf` uses.
This commit backports a squashed subset of their fixes.
(Excludes previous parts #3485 and #3493)
ParadoxV5 added a commit that referenced this pull request Nov 21, 2024
…as mistakenly applied on an earlier branch

It is `ulint` on 10.6 and `uint32_t` on 10.11+, but I included its
format specifier change in 10.6 (MDEV-35430, merged #3493) rather than
10.11+. This commit reverts that change so 10.11 can reapply it.
ParadoxV5 added a commit that referenced this pull request Nov 21, 2024
…as mistakenly applied on an earlier branch

It is `ulint` on 10.6 and `uint32_t` on 10.11+, but I included its
format specifier change in 10.6 (MDEV-35430, merged #3493) rather
than 10.11. This commit reverts that change so 10.11 can reapply it.
grooverdan pushed a commit that referenced this pull request Nov 25, 2024
…as mistakenly applied on an earlier branch

It is `ulint` on 10.6 and `uint32_t` on 10.11+, but I included its
format specifier change in 10.6 (MDEV-35430, merged #3493) rather
than 10.11. This commit reverts that change so 10.11 can reapply it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants