Closed AvihaiSam closed 2 days ago
I think it was fixed in https://github.com/secdev/scapy/commit/9946ef17f5d3783dab966b821c559cd65135fda5.
I think it was fixed in 9946ef1.
Cool I agree, it sounds like a fix... when would 2.6.0 be official then?
I'm not a scapy maintainer so I can't answer this question but it's being discussed in https://github.com/secdev/scapy/issues/4196. 2.6.0rc1
was already released.
when would 2.6.0 be official
Hopefully soon.
Thanks a lot @evverx. Closing
when running a malformed DHCP packet with
DHCP(data)
- scapy runs endlessly and increasing memory consumption.The mechanism is this partial code runs getfield() (in layers/dhcp.py:457) which runa
where dhcp's getfield is:
and it returns in line 200 with
s, []
which causes the same data going in again and again endlessly. each iteration val gets appended with another [] so it looks like[[], [], [], [], [], [], ......, []]
i think you should raise excepion in line 200 instead of
return s, []