Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4598

Coverity Null-Check after deref in NetworkUtilisRemote.cc

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: Network
    • Labels:

      Description

      ** 1237320 Dereference before null check **
      ___________________________________________
      660  event_notice = (TSMgmtEvent *)arg;
         	deref_ptr: Directly dereferencing pointer event_notice.
      661  index        = (int)event_notice->id;
      662  LLQ *func_q; // list of callback functions need to call
      663
      664  func_q = create_queue();
      665  if (!func_q) {
         	
      CID 1237320 (#1 of 1): Dereference before null check (REVERSE_INULL)
      check_after_deref: Null-checking event_notice suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
      666    if (event_notice)
      667      TSEventDestroy(event_notice);
      668    return NULL;
      669  }
       ___________________________________________
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tstroh Tyler Stroh
                Reporter:
                tstroh Tyler Stroh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: