Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-39697

JSON_MERGE_PATCH triggers a crash in mariadb

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • None
    • N/A
    • JSON
    • None
    • Not for Release Notes

    Description

      Hi,

      The following test case triggers a crash in MariaDB.

      SET @depth= 4000;
      SET @j= CONCAT(REPEAT('{"a":', @depth), '0', REPEAT('}', @depth));
       
      SELECT LEFT(JSON_MERGE_PATCH('{}', @j), 20) AS crash_probe;
      

      I can reproduce this with the commit version f6e44c1b7819f9befa3824f07866822288231528 of MariaDB server in github repo.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ChiZhang Chi Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.