Project

General

Profile

Actions

Bug #4018

closed

Napatech: Double release of packet possible in certain error cases.

Added by Jeff Lucovsky about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:
Needs backport to 5.0

Description

        p->ReleasePacket = NapatechReleasePacket;
        p->ntpv.nt_packet_buf = packet_buffer;
        p->ntpv.stream_id = ntv->stream_id;
        p->datalink = LINKTYPE_ETHERNET;

        if (unlikely(PacketSetData(p, (uint8_t *)NT_NET_GET_PKT_L2_PTR(packet_buffer), NT_NET_GET_PKT_WIRE_LENGTH(packet_buffer)))) {
            TmqhOutputPacketpool(ntv->tv, p);
            NT_NetRxRelease(ntv->rx_stream, packet_buffer);
            SCReturnInt(TM_ECODE_FAILED);
         }

When "PacketSetData" fails, the packet buffer will be released twice
- TmqhOutputPacketpool calls "p->ReleasePacket" which calls "NT_NetRxRelease"
- Direct call to NT_NetRxRelease


Related issues 1 (0 open1 closed)

Copied to Bug #4168: Napatech: Double release of packet possible in certain error cases.ClosedJeff LucovskyActions
Actions #1

Updated by Victor Julien almost 2 years ago

  • Status changed from New to Assigned
  • Assignee set to Phil Young
  • Target version set to 6.0.1
Actions #2

Updated by Victor Julien almost 2 years ago

  • Status changed from Assigned to Closed
Actions #3

Updated by Jeff Lucovsky almost 2 years ago

  • Copied to Bug #4168: Napatech: Double release of packet possible in certain error cases. added
Actions

Also available in: Atom PDF