Skip to content

lib: fix panic in Record payload accessor - #93

Merged
jlrivasp merged 1 commit into
intel:mainfrom
psurply:fix/record_payload
Jul 27, 2026
Merged

lib: fix panic in Record payload accessor#93
jlrivasp merged 1 commit into
intel:mainfrom
psurply:fix/record_payload

Conversation

@psurply

@psurply psurply commented Jul 27, 2026

Copy link
Copy Markdown
Member

The Record payload accessor must not panic when the record header is invalid.

Fixes: #92

The Record payload accessor must not panic when the record header is
invalid.

Fixes: intel#92
Signed-off-by: Surply, Pierre <pierre.surply@intel.com>

@jlrivasp jlrivasp 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!

@jlrivasp
jlrivasp merged commit 508cd23 into intel:main Jul 27, 2026
5 checks passed
@psurply
psurply deleted the fix/record_payload branch July 27, 2026 14:10
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.

Record::payload() panics on truncated records: header_size() is never bounded against data.len()

2 participants