You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The assertion assert(l2len > 0); in packet2tree() at tree.c is reachable when the user uses tcpprep to open a crafted pcap file.
The variable l2len is assigned in get_l2len_protocol() at get.c.
Describe the bug
The assertion
assert(l2len > 0);
in packet2tree() at tree.c is reachable when the user uses tcpprep to open a crafted pcap file.The variable
l2len
is assigned in get_l2len_protocol() at get.c.tcpreplay/src/tree.c
Lines 733 to 746 in 09f0774
However, when the
datalink
isDLT_RAW
orDLT_JUNIPER_ETHER
,l2len
is assigned with 0, and the assertion is triggered.tcpreplay/src/common/get.c
Lines 268 to 282 in 09f0774
To Reproduce
Steps to reproduce the behavior:
$ tcpprep --auto=bridge --pcap=$POC --cachefile=/dev/null
The POC file could be downloaded here:
POC_file
Expected behavior
Program reports assertion failure and is terminated.
Screenshots
The GDB report:
System (please complete the following information):
The text was updated successfully, but these errors were encountered: