Skip to content

erf/file: ERF META and PAD record types and extension headers - #16135

Closed
sfd wants to merge 2 commits into
OISF:mainfrom
sfd:source-erf-file-types-headers-support-8962-v1
Closed

erf/file: ERF META and PAD record types and extension headers#16135
sfd wants to merge 2 commits into
OISF:mainfrom
sfd:source-erf-file-types-headers-support-8962-v1

Conversation

@sfd

@sfd sfd commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.

Contribution style:

Our Contribution agreements:

Changes (if applicable):

Link to ticket: https://redmine.openinfosecfoundation.org/issues/8962

Describe changes:

  • 8962 erf/file: Add support for ERF PAD and META records and extension headers
  • 8865 erf/file: Fix buffer overflow from trusting rlen from file
  • 8836 erf/file: Don't use unvalidated wlen from file for packet length

sfd added 2 commits August 28, 2026 14:25
When reading an ERF file do not trust the ERF header values.

Do not use wlen to set packet length.

Ticket: 8836

Read rlen bytes into MAX_PAYLOAD_SIZE buffer.
Use PacketCopyData() to safely update p.

Ticket: 8865
Add support for ERF record types META and PAD, plus additional ETH types.

Add support for ERF extension headers.

These types and extension headers were already supported by erf-source-dag.

Made source-erf-file and source-erf-dag more consistent.

Ticket: 8962
@sfd
sfd requested a review from victorjulien as a code owner August 28, 2026 02:40
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 56 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.01%. Comparing base (389700e) to head (5b80c69).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16135      +/-   ##
==========================================
- Coverage   83.05%   83.01%   -0.05%     
==========================================
  Files        1004     1004              
  Lines      277407   277454      +47     
==========================================
- Hits       230410   230335      -75     
- Misses      46997    47119     +122     
Flag Coverage Δ
fuzzcorpus 61.48% <0.00%> (-0.02%) ⬇️
livemode 18.44% <0.00%> (+0.02%) ⬆️
netns 22.81% <0.00%> (-0.09%) ⬇️
pcap 45.34% <0.00%> (-0.05%) ⬇️
suricata-verify 67.19% <0.00%> (-0.06%) ⬇️
unittests 58.52% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@victorjulien victorjulien added this to the 9.0 milestone Aug 28, 2026
@victorjulien

Copy link
Copy Markdown
Member

Merged in #16141, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants