Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-26989

Coverity scan reported new defects related to Roxie

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Duplicate
    • master
    • 8.6.0
    • Roxie
    • None
    • Coverity scan

    Description

      CID Type Impact Status First Detected Component Category File Function
      1511046 Dereference after null check Medium New 01/17/22 Roxie Null pointer dereferences HPCC-Platform/roxie/udplib/udptrs.cpp sendData

       

       *** CID 1511046:  Null pointer dereferences  (FORWARD_NULL)
      /home/vamosax/build/CE/platform/HPCC-Platform/roxie/udplib/udptrs.cpp: 513 in UdpReceiverEntry::sendData(const UdpPermitToSendMsg &, TokenBucket *)()
      507                 if (isLocal && (totalSent> 100000))  // Avoids sending too fast to local node, for reasons lost in the mists of time
      508                     break;
      509     #endif
      510             }
      511             MemoryBuffer encryptBuffer;
      512             if (udpTraceFlow)
      >>>     CID 1511046:  Null pointer dereferences  (FORWARD_NULL)
      >>>     Passing null pointer "this->resendList" to "numActive", which dereferences it.
      513                 DBGLOG("Sending %u packets [..%u] from max of %u [resend %u queued %u]", (unsigned)toSend.size(), nextSendSequence.load(), permit.max_data, resendList->numActive(), packetsQueued.load(std::memory_order_relaxed));
      514             sendStart(toSend.size());
      515             for (DataBuffer *buffer: toSend)
      516             {
      517                 UdpPacketHeader *header = (UdpPacketHeader*) buffer->data;
      518                 unsigned length = header->length;

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            attilavamos Attila Vamos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: