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

Coverity analysis defect 77705: Dereference before null check

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:

      Description

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: