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

Passing null pointer to low level character set functions result in undefined behaviour

    XMLWordPrintable

Details

    • Sprint 7 (07.04.2025), Sprint 8 (21.04.2025), Sprint 9 (05.05.2025)

    Description

      Using https://github.com/MariaDB/server/pull/3946 and applying a bunch of nonnull attributes on include/m_ctype.h allows us to find callers that pass down null values in the expectation of some character set dependent results.

      The behaviour of null pointers should be determined higher in the stack.

      testing with -DWITH_ASAN=ON -DWITH_UBSAN=ON -DWITH_ASAN_SCOPE=ON -DPLUGIN_PERFSCHEMA=NO -DPLUGIN_MROONGA=NO -DCMAKE_BUILD_TYPE=Debug -DWITH_DBUG_TRACE=OFF and the non-debug, using clang-19+.

      Attachments

        Issue Links

          Activity

            People

              danblack Daniel Black
              danblack Daniel Black
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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