Skip to content

contrib/hicp: terminate Configure fields on the correct delimiter - #5100

Merged
gpotter2 merged 1 commit into
secdev:masterfrom
KernelClint:perf/hicp-configure-delimiter-scan
Aug 25, 2026
Merged

contrib/hicp: terminate Configure fields on the correct delimiter#5100
gpotter2 merged 1 commit into
secdev:masterfrom
KernelClint:perf/hicp-configure-delimiter-scan

Conversation

@KernelClint

Copy link
Copy Markdown
Contributor

The Configure field terminated on ! rather than the ; the format requires, so each field
re-scanned the rest of the packet and parsing cost grew with the square of the delimiter count.

Using the required ; removes the repeated suffix scans.

Test added in test/contrib/hicp.uts.

The Configure field ended on '!' rather than the ';' the format requires,
so each field re-scanned the remainder of the packet and parsing cost grew
with the square of the delimiter count.

Using the required ';' removes the repeated suffix scans.

AI-Assisted: yes (GPT-5.6-Cyber)
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.58%. Comparing base (1f87020) to head (4b61c16).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5100      +/-   ##
==========================================
+ Coverage   79.42%   80.58%   +1.16%     
==========================================
  Files         372      390      +18     
  Lines       96507    96858     +351     
==========================================
+ Hits        76652    78057    +1405     
+ Misses      19855    18801    -1054     
Files with missing lines Coverage Δ
scapy/contrib/hicp.py 89.86% <100.00%> (+0.06%) ⬆️

... and 303 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gpotter2
gpotter2 merged commit 48f03ff into secdev:master Aug 25, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants