Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-22438

Coverity analysis defect 77705: Dereference before null check

    • Fully Compatible
    • ALL

      All paths that lead to this null pointer comparison already dereference the pointer earlier

      Defect 77705 (STATIC_C)
      Checker REVERSE_INULL (subcategory none)
      File: /src/third_party/wiredtiger/src/conn/conn_api.c
      Function __wt_encryptor_config
      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 442
      Directly dereferencing pointer "encryptor".

          	if (encryptor->customize != NULL) {
      

      /src/third_party/wiredtiger/src/conn/conn_api.c, line: 445
      Null-checking "encryptor" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.

          		if (encryptor == NULL)
      

            Assignee:
            donald.anderson@mongodb.com Donald Anderson
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: