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

simple json functions flatline cpu on garbage input

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.2, 10.3, 10.3.6
    • Fix Version/s: 10.2.17
    • Component/s: JSON
    • Labels:
      None
    • Environment:
      Win x64

      Description

      MariaDB [(none)]> select * from information_schema.processlist where user<>'system user' and id<>connection_id()\G
      *************************** 1. row ***************************
                   ID: 8
                 USER: root
                 HOST:
                   DB: test
              COMMAND: Query
                 TIME: 121
                STATE: NULL
                 INFO: do json_array(1,uuid(),compress(5.140264e+307))
              TIME_MS: 121143.104
                STAGE: 0
            MAX_STAGE: 0
             PROGRESS: 0.000
          MEMORY_USED: 76104
      MAX_MEMORY_USED: 76104
        EXAMINED_ROWS: 0
             QUERY_ID: 1
          INFO_BINARY: do json_array(1,uuid(),compress(5.140264e+307))
                  TID: 0
      1 row in set (0.002 sec)
      

      How to Repeat:

      do json_array(1,uuid(),compress(5.140264e+307));
      

        Attachments

          Activity

            People

            • Assignee:
              holyfoot Alexey Botchkov
              Reporter:
              sbester1 sbester1
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: