Skip to content

MDEV-37052 JSON_SCHEMA_VALID stack overflow handling errors #4135

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

Open
wants to merge 1 commit into
base: 11.4
Choose a base branch
from

Conversation

grooverdan
Copy link
Member

  • The Jira issue number for this PR is: MDEV-37052

Description

#4134 covers the basics, however needed to copy some of the JSON_TABLE changes to be able to enable this to compile.

This extends the handling for JSON_SCHEMA_VALID too.

Since MDEV-33209 (09ea2dc) the the stack overflow errors are just injected instead of frailer mechanisms to consume stack. These mechanisms where not carried forward to the JSON_TABLE or JSON_SCHEMA_VALID where the pattern was the same.

add_extra_deps also no-longer recursively iterates in out of stack conditions.

Release Notes

debug mode only for this one.

How can this PR be tested?

Tests performed in json_debug_nonembedded(_noasan).

If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.

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.

Since MDEV-33209 (09ea2dc)
the the stack overflow errors are just injected instead of
frailer mechanisms to consume stack. These mechanims where
not carried forward to the JSON_TABLE or JSON_SCHEMA_VALID where
the pattern was the same.

add_extra_deps also no-longer recursively iterates in
out of stack conditions.

Tests performed in json_debug_nonembedded(_noasan).
@grooverdan grooverdan added the MariaDB Foundation Pull requests created by MariaDB Foundation label Jun 23, 2025
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