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

Coverity issue 1357058: Uninitialized members in PriorityQueue.h

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.2.1, 7.0.0
    • Core
    • None

    Description

      ** CID 1357058:  Uninitialized members  (UNINIT_CTOR)
      /lib/ts/PriorityQueue.h: 32 in PriorityQueueEntry<RefCountCacheHashEntry *>::PriorityQueueEntry()()
      
      
      ________________________________________________________________________________________________________
      *** CID 1357058:  Uninitialized members  (UNINIT_CTOR)
      /lib/ts/PriorityQueue.h: 32 in PriorityQueueEntry<RefCountCacheHashEntry *>::PriorityQueueEntry()()
      26     
      27     #include "ts/ink_assert.h"
      28     #include "ts/Vec.h"
      29     
      30     template <typename T> struct PriorityQueueEntry {
      31       PriorityQueueEntry(T n) : index(0), node(n){};
         CID 1357058:  Uninitialized members  (UNINIT_CTOR)
         Non-static class member "node" is not initialized in this constructor nor in any functions that it calls.
      32       PriorityQueueEntry() : index(0){};
      33       uint32_t index;
      34       T node;
      35     };
      36     
      37     template <typename T> struct PriorityQueueLess {
      
      

      Attachments

        Issue Links

          Activity

            People

              masaori Masaori Koshiba
              zwoop Leif Hedstrom
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: