Coverity analysis defect 77705: Dereference before null check

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: