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;