Skip to content

Fix nested ListFields - #3923

Merged
gpotter2 merged 1 commit into
secdev:masterfrom
gpotter2:fix-nestedlist
Mar 31, 2023
Merged

gpotter2 merged 1 commit into
secdev:masterfrom
gpotter2:fix-nestedlist

Conversation

@gpotter2

@gpotter2 gpotter2 commented Mar 4, 2023

Copy link
Copy Markdown
Member

In my opinion, a (much) better fix for #3894

fixes #3894
closes #3919

@codecov

codecov Bot commented Mar 4, 2023 •

Copy link
Copy Markdown

Codecov Report

Merging #3923 (4b87959) into master (181aa4d) will decrease coverage by 0.03%.
The diff coverage is 92.30%.

@@            Coverage Diff             @@
##           master    #3923      +/-   ##
==========================================
- Coverage   81.77%   81.74%   -0.03%     
==========================================
  Files         327      327              
  Lines       74712    74722      +10     
==========================================
- Hits        61093    61081      -12     
- Misses      13619    13641      +22     
Impacted Files Coverage Δ
scapy/packet.py 83.23% <92.30%> (+0.04%) ⬆️

... and 10 files with indirect coverage changes

@evverx evverx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I think this approach is better because it tries to keep as many lists as possible. I'm not sure whether it's safe to assume that lists can be nested until RecursionError is hit: #3919 (comment) though but it's probably a separate issue.

Comment thread scapy/packet.py Resolved
Comment thread test/scapy/layers/dhcp6.uts Resolved
@evverx

This comment was marked as outdated.

@gpotter2

gpotter2 commented Mar 5, 2023

Copy link
Copy Markdown
Member Author

I tweaked it a bit, it's working fine now

@gpotter2 gpotter2 added the bug label Mar 5, 2023
@gpotter2
gpotter2 merged commit 4aaed1d into secdev:master Mar 31, 2023
@gpotter2
gpotter2 deleted the fix-nestedlist branch November 28, 2023 19:53
@gpotter2 gpotter2 added this to the 2.6.0 milestone Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

raw_packet_cache_fields slow down do_dissect significantly if ListPacketFields are relatively deeply nested

2 participants