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

crash with ST_GeomFromGeoJSON(, NULL)

    XMLWordPrintable

Details

    • Can result in unexpected behaviour
    • Crash or incorrect result when st_geometryfromtext, st_geometryfromwkb, st_geomfromgeojson were getting non-constant NULL in the second or third argument.

    Description

      SELECT ST_GeomFromGeoJSON('{"type":"Point","coordinates":[1,1]}', IF(1=1, NULL, 1))
      

      Reported by Qing Xu

      Attachments

        Activity

          People

            serg Sergei Golubchik
            serg Sergei Golubchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.