Skip to content

tests: check that open_pcap returns only the captured bytes - #5216

Open
KernelClint wants to merge 1 commit into
secdev:masterfrom
KernelClint:test/open-pcap-returned-bytes
Open

KernelClint wants to merge 1 commit into
secdev:masterfrom
KernelClint:test/open-pcap-returned-bytes

Conversation

@KernelClint

Copy link
Copy Markdown
Contributor

Description

The GHSA-c547 test checks the header lengths but not the bytes next() returns, so it still passes if that fix is reverted. This adds the check. Tested on macOS and Linux: passes on master, fails with the fix reverted.

The GHSA-c547 test checks the header lengths but not the data that
next() returns, so it still passed with the fix reverted.

AI-Assisted: yes
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.83%. Comparing base (e2e35c0) to head (5d2d680).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5216      +/-   ##
==========================================
- Coverage   81.14%   80.83%   -0.31%     
==========================================
  Files         393      393              
  Lines       98325    98325              
==========================================
- Hits        79786    79485     -301     
- Misses      18539    18840     +301     

see 27 files with indirect coverage changes

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

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.

1 participant