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

Infer: NULLPTR_DEREFERENCE in tests

    XMLWordPrintable

Details

    • Not for Release Notes
    • Q4/2026 Server Maintenance

    Description

      11.4.12-9
      tests/async_queries.c:323: NULLPTR_DEREFERENCE: `q2` could be null (from the call to `my_strdup()` on line 318) and is dereferenced.
      tests/mysql_client_test.c:15743: NULLPTR_DEREFERENCE: `stmt` could be null (from the call to `mysql_stmt_init()` on line 15741) and is dereferenced in the call to `mysql_stmt_sqlstate()`.
      tests/mysql_client_test.c:15760: NULLPTR_DEREFERENCE: `stmt` could be null (from the call to `mysql_stmt_init()` on line 15759) and is dereferenced in the call to `mysql_stmt_attr_set()`.
      tests/mysql_client_test.c:18413: NULLPTR_DEREFERENCE: null (from the call to `mysql_stmt_init()` on line 18412) is dereferenced in the call to `mysql_stmt_attr_set()`.
      unittest/json_lib/json_normalize-t.c:231: NULLPTR_DEREFERENCE: `buf.str` could be null (null value originating from line 226) and is dereferenced.
      unittest/mysys/bitmap-t.c:567: NULLPTR_DEREFERENCE: `map2.bitmap` could be null (null value originating from line 565) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:659: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 649) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:665: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 651) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:668: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 651) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:674: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 653) and is dereferenced.
      unittest/mysys/thr_template.c:38: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 28) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:121: NULLPTR_DEREFERENCE: `buf` could be null (null value originating from line 120) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:313: NULLPTR_DEREFERENCE: `buf_i` could be null (null value originating from line 305) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:314: NULLPTR_DEREFERENCE: `buf_o` could be null (null value originating from line 307) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:401: NULLPTR_DEREFERENCE: `buf` could be null (null value originating from line 395) and is dereferenced.
       
      11.8.8-5
      tests/async_queries.c:323: NULLPTR_DEREFERENCE: `q2` could be null (from the call to `my_strdup()` on line 318) and is dereferenced.
      tests/mysql_client_test.c:15743: NULLPTR_DEREFERENCE: `stmt` could be null (from the call to `mysql_stmt_init()` on line 15741) and is dereferenced in the call to `mysql_stmt_sqlstate()`.
      tests/mysql_client_test.c:15760: NULLPTR_DEREFERENCE: `stmt` could be null (from the call to `mysql_stmt_init()` on line 15759) and is dereferenced in the call to `mysql_stmt_attr_set()`.
      tests/mysql_client_test.c:18413: NULLPTR_DEREFERENCE: null (from the call to `mysql_stmt_init()` on line 18412) is dereferenced in the call to `mysql_stmt_attr_set()`.
      unittest/json_lib/json_normalize-t.c:231: NULLPTR_DEREFERENCE: `buf.str` could be null (null value originating from line 226) and is dereferenced.
      unittest/mysys/bitmap-t.c:567: NULLPTR_DEREFERENCE: `map2.bitmap` could be null (null value originating from line 565) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:659: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 649) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:665: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 651) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:668: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 651) and is dereferenced.
      unittest/mysys/ma_dyncol-t.c:674: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 653) and is dereferenced.
      unittest/mysys/thr_template.c:38: NULLPTR_DEREFERENCE: `i` could be null (null value originating from line 28) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:121: NULLPTR_DEREFERENCE: `buf` could be null (null value originating from line 120) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:313: NULLPTR_DEREFERENCE: `buf_i` could be null (null value originating from line 305) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:314: NULLPTR_DEREFERENCE: `buf_o` could be null (null value originating from line 307) and is dereferenced.
      unittest/sql/mf_iocache-t.cc:401: NULLPTR_DEREFERENCE: `buf` could be null (null value originating from line 395) and is dereferenced.
       

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            es-jenkins-sa ES Jenkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5d
                0.5d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 3h Time Not Required
                3h

                Git Integration

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